ResponseContentParser { public static String extractOperator(RequestData data) { if (data instanceof AssignmentResponseContent) { return "="; } else if (data instanceof ValidationResponseContent) { ValidationResponseContent vrc = (ValidationResponseContent) data; return vrc.getOperator().getValue(); } else { return extractCondition(data.getValue()); } }  static String extractOperator(RequestData data); static String extractValidateValue(String value); static String extractCondition(String conditionStr);  }
@Test public void testExtractOperator_2() throws Exception { ValidationResponseContent data = new ValidationResponseContent(); data.setOperator(ValidationType.contains); String result = ResponseContentParser.extractOperator(data); assertNotNull(result); }
@Test public void testExtractOperator_3() throws Exception { RequestData data = new RequestData("", "", ""); String result = ResponseContentParser.extractOperator(data); assertNotNull(result); }