### Question:
ServerRestApi { @NotNull public String requestDateTimeFormatPattern() throws IOException, HttpException { return plainRequest("rest_v2/serverInfo/datetimeFormatPattern"); } ServerRestApi(NetworkClient networkClient); @NotNull ServerInfoData requestServerInfo(); @NotNull String requestBuild(); @NotNull String requestEdition(); @NotNull String requestVersion(); @NotNull String requestFeatures(); @NotNull String requestEditionName(); @NotNull String requestLicenseType(); @NotNull String requestExpiration(); @NotNull String requestDateFormatPattern(); @NotNull String requestDateTimeFormatPattern();  }### Answer:
@Test public void shouldHandlePlainTextResponseForDatetimeFormatPattern() throws Exception { mWebMockRule.enqueue( MockResponseFactory.create200().setBody("yyyy-MM-dd'T'HH:mm:ss") ); String editionName = objectUnderTest.requestDateTimeFormatPattern(); assertThat(editionName, is("yyyy-MM-dd'T'HH:mm:ss")); RecordedRequest recordedRequest = mWebMockRule.get().takeRequest(); assertThat("Should accept text plain header", recordedRequest, containsHeader("Accept", "text/plain; charset=UTF-8")); assertThat("Should have path '/rest_v2/serverInfo/datetimeFormatPattern'", recordedRequest, hasPath("/rest_v2/serverInfo/datetimeFormatPattern")); }