### Question:
TodoGatewayApplicationService { public Response deleteTodo(final Long todoId) { LOG.debug("Request deleteTodo todo with id {}", todoId); return client.deleteTodo(todoId); }  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 deleteTodo() { Mockito.when(response.getStatus()).thenReturn(Response.Status.NO_CONTENT.getStatusCode()); Mockito.when(client.deleteTodo(Mockito.anyLong())).thenReturn(response); Response response = service.deleteTodo(1L); assertThat(response.getStatus()).isEqualTo(Response.Status.NO_CONTENT.getStatusCode()); Mockito.verify(client).deleteTodo(Mockito.anyLong()); Mockito.verifyNoMoreInteractions(client); }