### Question:
OperationHandler { public boolean execute() { boolean isExecutionOk = true; if (!fieldsToCheck.containsKey(JSON_ELEM_ACTUAL_VALUE) || !fieldsToCheck.containsKey(JSON_ELEM_EXPECTED_VALUE)) { throw new HeatException("json input format not supported! '" + fieldsToCheck.toString() + "'"); } if (isComparingBlock()) { isExecutionOk &= multipleModeOperationExecution(); } else { isExecutionOk &= singleModeOperationExecution(); } return isExecutionOk; } OperationHandler(Map fieldsToCheck,
            Object response); boolean execute(); void setOperationBlocking(boolean isBlocking); void setFlowOutputParameters(Map<Integer, Map<String, String>> retrievedParameters); LoggingUtils getLogUtils(); static final String OPERATION_JSON_ELEMENT; static final String FORMAT_OF_TYPE_CHECK_JSON_ELEMENT; static final String JSON_ELEM_DESCRIPTION; static final String JSON_ELEM_EXPECTED_VALUE; static final String JSON_ELEM_ACTUAL_VALUE; static final String JSON_ELEM_REFERRING_OBJECT; }### Answer:
@Test (enabled = true) public void testCompareEqualsFields() { underTest = new OperationHandler(getEqualsFieldsToCheck(), buildResponses()); boolean execution = underTest.execute(); Assert.assertTrue(execution); }
@Test(enabled = true, expectedExceptions = HeatException.class) public void testCompareDifferentFields() { underTest = new OperationHandler(getDifferentFieldsToCheck(), buildResponses()); underTest.execute(); }