EnvBuilder { public EnvBuilder export(String name, String value) { variables.put(checkNotNull(name, "name"), checkNotNull(value, "value")); return this; }  EnvBuilder export(String name, String value); String build(final OsFamily osFamily);  }
@Test public void testExport() { EnvBuilder builder = new EnvBuilder(); builder.export("JAVA_HOME", "/apps/jdk1.6"); assertEquals(builder.variables, ImmutableMap.of("JAVA_HOME", "/apps/jdk1.6")); }
@Test(expectedExceptions = NullPointerException.class) public void testExportNPE() { new EnvBuilder().export(null, null); }