### Question:
AuthPolicy { public Integer getRequiredFactors() { return requiredFactors; } 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 getRequiredFactorsReturnsValueForRequiredFactorsConstructor() throws Exception { assertEquals(Integer.valueOf(99), new AuthPolicy(99).getRequiredFactors()); }
@Test public void getRequiredFactorsReturnsValueForRequiredFactorsLocationsConstructor() throws Exception { assertEquals(Integer.valueOf(99), new AuthPolicy(99, new ArrayList<AuthPolicy.Location>()).getRequiredFactors()); }
@Test public void getRequiredFactorsReturnsNullForLocationsConstructor() throws Exception { assertEquals(null, new AuthPolicy(new ArrayList<AuthPolicy.Location>()).getRequiredFactors()); }
@Test public void getRequiredFactorsReturnsNullForFactorRequiredConstructor() throws Exception { assertEquals(null, new AuthPolicy(true, true, true).getRequiredFactors()); }
@Test public void getRequiredFactorsReturnsNullForFactorRequiredLocationsConstructor() throws Exception { assertEquals(null, new AuthPolicy(true, true, true, new ArrayList<AuthPolicy.Location>()).getRequiredFactors()); }
@Test public void getRequiredFactorsReturnsNullForFactorRequiredJailbreakProtectionLocationsConstructor() throws Exception { assertEquals(null, new AuthPolicy(true, true, true, true, new ArrayList<AuthPolicy.Location>()).getRequiredFactors()); }