### Question:
ServiceV3AuthsPostResponse { public List<String> getDeviceIds() { return deviceIds; } @JsonCreator  ServiceV3AuthsPostResponse(
            @JsonProperty(value = "auth_request") UUID authRequest,
            @JsonProperty(value = "push_package") String pushPackage,
            @JsonProperty(value = "device_ids") List<String> deviceIds
    ); UUID getAuthRequest(); String getPushPackage(); List<String> getDeviceIds(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void getDeviceIDs() { List<String> expected = new ArrayList<String>(){{add("Device ID");}}; assertEquals(expected, new ServiceV3AuthsPostResponse(null, null, expected).getDeviceIds()); }
@Test public void parsesMissingDeviceIdsAsNull() throws Exception { String json = "{\"auth_request\":\"" + UUID.randomUUID() + "\",\"push_package\":\"package\"}"; List<String> actual = new ObjectMapper().readValue(json, ServiceV3AuthsPostResponse.class).getDeviceIds(); assertThat(actual, is(nullValue())); }
@Test public void parsesGivenDeviceIdsAsListOfString() throws Exception { List<String> expected = new ArrayList<String>() {{ add("1"); add("2"); }}; String json = "{\"auth_request\":\"" + UUID.randomUUID() + "\",\"push_package\":\"package\",\"device_ids\":[\"1\", \"2\"]}"; List<String> actual = new ObjectMapper().readValue(json, ServiceV3AuthsPostResponse.class).getDeviceIds(); assertThat(actual, is(equalTo(expected))); }