### Question:
TodoGatewayApplicationService { public Response updateTodo(final Long todoId, final String modifiedTodo) { LOG.info("Request updateTodo todo with id {} ({})", todoId, modifiedTodo); return client.updateTodo(todoId, modifiedTodo); }  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 updateTodo() { Mockito.when(response.getStatus()).thenReturn(Response.Status.NO_CONTENT.getStatusCode()); Mockito.when(client.updateTodo(Mockito.anyLong(), Mockito.anyString())).thenReturn(response); Response response = service.updateTodo(1L, "{\n" + " \"title\": \"clean fridge\",\n" + " \"description\": \"It's a mess\",\n" + " \"dueDate\": \"2018-01-01T12:34:56Z\"\n" + " \"done\": true\n" + "}"); assertThat(response.getStatus()).isEqualTo(Response.Status.NO_CONTENT.getStatusCode()); Mockito.verify(client).updateTodo(Mockito.anyLong(), Mockito.anyString()); Mockito.verifyNoMoreInteractions(client); }