### Question:
PublicKey { public Boolean isActive() { return active; } PublicKey(String id, boolean active, Date created, Date expires); String getId(); Boolean isActive(); Date getCreated(); Date getExpires(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void isActive() throws Exception { assertEquals(active, publicKey.isActive()); }