LogUtil { public static boolean isTextMimeType(String mimeType) { if (mimeType != null) { try { Collection<String> validMimeTypeRegex = APITestHarness.getInstance().getTankConfig() .getAgentConfig() .getTextMimeTypeRegex(); for (String regex : validMimeTypeRegex) { if (mimeType.matches(regex)) { return true; } } } catch (Exception e) { LOG.warn(e.toString()); } } return false; } private  LogUtil(); static final LogEvent getLogEvent(); static final ObjectMessage getLogMessage(String msg); static final ObjectMessage getLogMessage(String msg, LogEventType type); static final ObjectMessage getLogMessage(String msg, LogEventType type, LoggingProfile profile); static boolean isTextMimeType(String mimeType);  }
@Test public void testIsTextMimeType_1() throws Exception { String mimeType = "application/xml"; boolean result = LogUtil.isTextMimeType(mimeType); assertTrue(result); }
@Test public void testIsTextMimeType_2() throws Exception { String mimeType = "text/html"; boolean result = LogUtil.isTextMimeType(mimeType); assertTrue(result); }
@Test public void testIsTextMimeType_3() throws Exception { String mimeType = "application/json"; boolean result = LogUtil.isTextMimeType(mimeType); assertTrue(result); }