### Question:
TodoGatewayApplicationService { public Response getTodos() { LOG.debug("Request all todos"); return client.getTodos(); }  Response createTodo(final String newTodo); Response deleteTodo(final Long todoId); Response getTodo(final Long todoId); Response getTodos(); Response updateTodo(final Long todoId, final String modifiedTodo);  }### Answer:
@Test public void getTodos() { Mockito.when(response.getStatus()).thenReturn(Response.Status.OK.getStatusCode()); Mockito.when(client.getTodos()).thenReturn(response); Response response = service.getTodos(); assertThat(response.getStatus()).isEqualTo(Response.Status.OK.getStatusCode()); Mockito.verify(client).getTodos(); Mockito.verifyNoMoreInteractions(client); }