### Question:
RuleSet implements Serializable { public AccessType evaluate(Address address, Class<?> type) { Validate.notNull(address); Validate.notNull(type); for (int i = 0; i < address.size(); i++) { Address foundAddressPrefix = address.removeSuffix(i); AddressRule rule = rules.get(foundAddressPrefix); if (rule != null) { boolean evaluatingChildAddress = foundAddressPrefix.size() < address.size(); if (!evaluatingChildAddress || (evaluatingChildAddress && rule.includeChildren)) { if (rule.getTypes().isEmpty() || rule.getTypes().contains(type)) { return rule.getAccessType(); } } } } return defaultAccessType; } RuleSet();   RuleSet(RuleSet other); void allowAll(); void rejectAll(); void allow(Address address, boolean includeChildren, Class<?>... types); void allow(String source, boolean children, Class<?>... types); void reject(Address address, boolean includeChildren, Class<?>... types); void reject(String source, boolean children, Class<?>... types); AccessType evaluate(Address address, Class<?> type);  }### Answer:
@Test public void mustRejectByDefault() { assertEquals( AccessType.REJECT, fixture.evaluate(Address.fromString("addr1"), Object.class) ); }