### Question:
AuthorizationResponsePolicy { public boolean wasKnowledgeRequired() { return knowledgeRequired; } AuthorizationResponsePolicy(Requirement requirement, int amount, List<Fence> fences,
                                       boolean inherenceRequired, boolean knowledgeRequired,
                                       boolean possessionRequired); Requirement getRequirement(); int getAmount(); List<Fence> getFences(); boolean wasInherenceRequired(); boolean wasKnowledgeRequired(); boolean wasPossessionRequired(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void wasKnowledgeRequired() { policy = new AuthorizationResponsePolicy(Requirement.OTHER, 1, null, false, true, false); assertTrue(policy.wasKnowledgeRequired()); }