### Question:
KeysListPostResponsePublicKey { public Date getExpires() { return expires; } @JsonCreator  KeysListPostResponsePublicKey(@JsonProperty("id") String id,
                                         @JsonProperty("public_key") String publicKey,
                                         @JsonProperty("date_created") Date created,
                                         @JsonProperty("date_expires") Date expires,
                                         @JsonProperty("active") boolean active); String getId(); String getPublicKey(); Date getCreated(); Date getExpires(); boolean isActive();  }### Answer:
@Test public void getExpires() throws Exception { Date expected = new Date(); assertEquals(expected, new KeysListPostResponsePublicKey(null, null, null, expected, false).getExpires()); }
@Test public void fromJsonGetsProperExpirationDate() throws Exception { Date expected = new Date(946684800000L); assertEquals(expected, objectMapper .readValue("{\"date_expires\": \"2000-01-01T00:00:00Z\"}", KeysListPostResponsePublicKey.class) .getExpires()); }