//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void testCreateCaseInstanceByCaseDefinitionIdWithVariables() public virtual void testCreateCaseInstanceByCaseDefinitionIdWithVariables() { IDictionary <string, object> variables = new Dictionary <string, object>(); variables["aVariableName"] = VariablesBuilder.getVariableValueMap("abc", ValueType.STRING.Name); variables["anotherVariableName"] = VariablesBuilder.getVariableValueMap(900, ValueType.INTEGER.Name); IDictionary <string, object> @params = new Dictionary <string, object>(); @params["variables"] = variables; given().pathParam("id", MockProvider.EXAMPLE_CASE_DEFINITION_ID).contentType(POST_JSON_CONTENT_TYPE).body(@params).then().expect().statusCode(Status.OK.StatusCode).body("id", equalTo(MockProvider.EXAMPLE_CASE_INSTANCE_ID)).when().post(CREATE_INSTANCE_URL); verify(caseServiceMock).withCaseDefinition(MockProvider.EXAMPLE_CASE_DEFINITION_ID); verify(caseInstanceBuilder).businessKey(null); verify(caseInstanceBuilder).Variables = argThat(EqualsVariableMap.matches().matcher("aVariableName", EqualsPrimitiveValue.stringValue("abc")).matcher("anotherVariableName", EqualsPrimitiveValue.integerValue(900))); verify(caseInstanceBuilder).create(); }