### Question:
AuthPolicy { @Override public String toString() { return "AuthPolicy{" + "requiredFactors=" + requiredFactors + ", requireKnowledgeFactor=" + requireKnowledgeFactor + ", requireInherenceFactor=" + requireInherenceFactor + ", requirePossessionFactor=" + requirePossessionFactor + ", locations=" + locations + ", enableJailbreakProtection=" + 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 toStringContainsClassName() throws Exception { assertThat(new AuthPolicy(3).toString(), containsString(AuthPolicy.class.getSimpleName())); }