### Question:
StatusResource { @GET public Response getAllStatuses() { return Response.ok(CommandStatuses.fromFullStatuses(statementExecutor.getStatuses())).build(); } StatusResource(StatementExecutor statementExecutor); @GET Response getAllStatuses(); @GET @Path("/{type}/{entity}/{action}") Response getStatus(
      @PathParam("type") String type,
      @PathParam("entity") String entity,
      @PathParam("action") String action
  );  }### Answer:
@Test public void testGetAllStatuses() { StatusResource testResource = getTestStatusResource(); Object statusesEntity = testResource.getAllStatuses().getEntity(); assertThat(statusesEntity, instanceOf(CommandStatuses.class)); CommandStatuses testCommandStatuses = (CommandStatuses) statusesEntity; Map<CommandId, CommandStatus.Status> expectedCommandStatuses = CommandStatuses.fromFullStatuses(mockCommandStatuses); assertEquals(expectedCommandStatuses, testCommandStatuses); }