CollectServerClient { public static String getPlainTextMimeType() { return "text/plain"; } @Inject  CollectServerClient(OpenRosaHttpInterface httpInterface, WebCredentialsUtils webCredentialsUtils); DocumentFetchResult getXmlDocument(String urlString); @NonNull HttpGetResult getHttpInputStream(@NonNull String downloadUrl, @Nullable final String contentType); static String getPlainTextMimeType(); static final String HTTP_CONTENT_TYPE_TEXT_XML; }
@Test public void testGetPlainTextMimeType() { assertEquals(CollectServerClient.getPlainTextMimeType(), "text/plain"); }