### Question:
AuthPolicy { public Boolean isPossessionFactorRequired() { return requirePossessionFactor; } AuthPolicy(List<Location> locations);  AuthPolicy(int requiredFactors);  AuthPolicy(Integer requiredFactors, List<Location> locations);  AuthPolicy(Integer requiredFactors, Boolean enableJailbreakProtection, List<Location> locations);  AuthPolicy(Boolean requireKnowledgeFactor, Boolean requireInherenceFactor, Boolean requirePossessionFactor);  AuthPolicy(Boolean requireKnowledgeFactor, Boolean requireInherenceFactor, Boolean requirePossessionFactor,
                      List<Location> locations);  AuthPolicy(Boolean requireKnowledgeFactor, Boolean requireInherenceFactor, Boolean requirePossessionFactor,
                      Boolean enableJailbreakProtection, List<Location> locations); Integer getRequiredFactors(); Boolean isKnowledgeFactorRequired(); Boolean isInherenceFactorRequired(); Boolean isPossessionFactorRequired(); Boolean isJailbreakProtectionEnabled(); List<Location> getLocations(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void isPossessionFactorRequiredReturnsNullForRequiredFactorsConstructor() throws Exception { assertNull(new AuthPolicy(99).isPossessionFactorRequired()); }
@Test public void isPossessionFactorRequiredReturnsNullForRequiredFactorsLocationsConstructor() throws Exception { assertNull(new AuthPolicy(99, new ArrayList<AuthPolicy.Location>()).isPossessionFactorRequired()); }
@Test public void isPossessionFactorRequiredReturnsNullForLocationsConstructor() throws Exception { assertNull(new AuthPolicy(new ArrayList<AuthPolicy.Location>()).isPossessionFactorRequired()); }
@Test public void isossessionFactorRequiredReturnsNulllForForRequiredFactorsJailbreakProtectionLocationsConstructor() throws Exception { assertNull(new AuthPolicy(99, true, new ArrayList<AuthPolicy.Location>()).isPossessionFactorRequired()); }
@Test public void isPossessionFactorRequiredReturnsValueForFactorRequiredConstructor() throws Exception { assertTrue(new AuthPolicy(true, true, true).isPossessionFactorRequired()); }
@Test public void isPossessionFactorRequiredReturnsValueForFactorRequiredLocationsConstructor() throws Exception { assertTrue(new AuthPolicy(true, true, true, new ArrayList<AuthPolicy.Location>()).isPossessionFactorRequired()); }