@Test
public void writeResult_ok() throws IOException {

    servlet.writeResult(response, "test");
    verify(response, times(1)).setStatus(HttpServletResponse.SC_OK);
    verify(writer, times(1)).write("test");
}