### Question:
MinionKeysOnMasterResponse { public List<String> getRejectedMinions() { return getMinionsByState("minions_rejected"); }  List<String> getUnacceptedMinions(); List<String> getAcceptedMinions(); List<String> getDeniedMinions(); List<String> getRejectedMinions(); List<String> getAllMinions(); List<Map<String, JsonNode>> getResult(); void setResult(List<Map<String, JsonNode>> result); @Override String toString();  }### Answer:
@Test public void testMissingState() throws IOException { MinionKeysOnMasterResponse response = JsonUtil.readValue(MISSING_STATE, MinionKeysOnMasterResponse.class); List<String> rejectedMinions = response.getRejectedMinions(); assertNotNull(rejectedMinions); assertTrue(rejectedMinions.isEmpty()); }
@Test public void testMissingReturn() throws IOException { MinionKeysOnMasterResponse response = JsonUtil.readValue(MISSING_RETURN, MinionKeysOnMasterResponse.class); List<String> rejectedMinions = response.getRejectedMinions(); assertNotNull(rejectedMinions); assertTrue(rejectedMinions.isEmpty()); }
@Test public void testMissingData() throws IOException { MinionKeysOnMasterResponse response = JsonUtil.readValue(MISSING_DATA, MinionKeysOnMasterResponse.class); List<String> rejectedMinions = response.getRejectedMinions(); assertNotNull(rejectedMinions); assertTrue(rejectedMinions.isEmpty()); }