@Override
  public void handle(Request request, Response response) throws Exception {
    response.stream().setMediaType(MediaTypes.TXT);
    IOUtils.write(server.getVersion(), response.stream().output(), UTF_8);
  }
@Test
  public void returns_version_as_plain_text() throws Exception {
    when(server.getVersion()).thenReturn("6.4-SNAPSHOT");

    DumbResponse response = new DumbResponse();
    underTest.handle(mock(Request.class), response);

    assertThat(new TestResponse(response).getInput()).isEqualTo("6.4-SNAPSHOT");
  }