ConfigurationBuilder { public ConfigurationBuilder set(final String name, final String value) { if (name == null) { throw new NullPointerException(); } if (value == null) { throw new NullPointerException(); } log.debug("Set: {}={}", name, value); properties.put(name, value); return this; }  ConfigurationBuilder properties(final Map<String, String> props); ConfigurationBuilder properties(final URL url); ConfigurationBuilder properties(final String resource, final boolean required); ConfigurationBuilder properties(final Class<?> clazz, final String resource, final boolean required); ConfigurationBuilder properties(final File resource, final boolean required); ConfigurationBuilder properties(final File resource, final String onlyConcern, final boolean required); ConfigurationBuilder defaults(); ConfigurationBuilder set(final String name, final String value); ConfigurationBuilder custom(final Customizer customizer); ConfigurationBuilder override(final Map<String,String> overrides); ConfigurationBuilder override(final Properties overrides); Map<String, String> build();  }
@Test public void set_withNulls() throws Exception { try { underTest.set("foo", null); fail(); } catch (NullPointerException expected) { } try { underTest.set(null, "bar"); fail(); } catch (NullPointerException expected) { } }