### Question:
AuthPolicy { public Boolean isJailbreakProtectionEnabled() { return enableJailbreakProtection; } 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 isJailbreakProtectionEnabledReturnsNullForRequiredFactorsConstructor() throws Exception { assertNull(new AuthPolicy(99).isJailbreakProtectionEnabled()); }
@Test public void isJailbreakProtectionEnabledReturnsNullForRequiredFactorsLocationsConstructor() throws Exception { assertNull(new AuthPolicy(99, new ArrayList<AuthPolicy.Location>()).isJailbreakProtectionEnabled()); }
@Test public void isJailbreakProtectionEnabledReturnsNullForLocationsConstructor() throws Exception { assertNull(new AuthPolicy(new ArrayList<AuthPolicy.Location>()).isJailbreakProtectionEnabled()); }
@Test public void isJailbreakProtectionEnabledReturnsValueForForRequiredFactorsJailbreakProtectionLocationsConstructor() throws Exception { assertTrue(new AuthPolicy(99, true, new ArrayList<AuthPolicy.Location>()).isJailbreakProtectionEnabled()); }
@Test public void isJailbreakProtectionEnabledReturnsNullForFactorRequiredConstructor() throws Exception { assertNull(new AuthPolicy(true, true, true).isJailbreakProtectionEnabled()); }
@Test public void isJailbreakProtectionEnabledReturnsNullForFactorRequiredLocationsConstructor() throws Exception { assertNull(new AuthPolicy(true, true, true, new ArrayList<AuthPolicy.Location>()).isJailbreakProtectionEnabled()); }
@Test public void isJailbreakProtectionEnabledReturnsValueForFactorRequiredJailbreakProtectionLocationsConstructor() throws Exception { assertTrue(new AuthPolicy(false, false, false, true, new ArrayList<AuthPolicy.Location>()).isJailbreakProtectionEnabled()); }