DomainNameMapping implements Mapping<String, V> { @Deprecated public DomainNameMapping<V> add(String hostname, V output) { map.put(normalizeHostname(checkNotNull(hostname, "hostname")), checkNotNull(output, "output")); return this; } @Deprecated  DomainNameMapping(V defaultValue); @Deprecated  DomainNameMapping(int initialCapacity, V defaultValue);   DomainNameMapping(Map<String, V> map, V defaultValue); @Deprecated DomainNameMapping<V> add(String hostname, V output); @Override V map(String hostname); @Override String toString();  }
@Test(expected = NullPointerException.class) public void testNullDomainNamePatternsAreForbiddenInDeprecatedApi() { new DomainNameMapping<String>("NotFound").add(null, "Some value"); }
@Test(expected = NullPointerException.class) public void testNullValuesAreForbiddenInDeprecatedApi() { new DomainNameMapping<String>("NotFound").add("Some key", null); }
@Test(expected = NullPointerException.class) public void testNullDomainNamePatternsAreForbidden() { new DomainMappingBuilder<String>("NotFound").add(null, "Some value"); }
@Test(expected = NullPointerException.class) public void testNullValuesAreForbidden() { new DomainMappingBuilder<String>("NotFound").add("Some key", null); }