### Question:
ServerRestApi { @NotNull public String requestExpiration() throws IOException, HttpException { return plainRequest("rest_v2/serverInfo/expiration"); } 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 shouldHandlePlainTextResponseForExpiration() throws Exception { mWebMockRule.enqueue( MockResponseFactory.create200().setBody("1000") ); String editionName = objectUnderTest.requestExpiration(); assertThat(editionName, is("1000")); 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/expiration'", recordedRequest, hasPath("/rest_v2/serverInfo/expiration")); }