### Question:
StaticUsingArgs { @Privileged static String[] getProperties(String... names) { if (names == null) { return null; } final ArrayList<String> result = new ArrayList<String>(); for (String name : names) { result.add(System.getProperty(name)); } return result.toArray(new String[result.size()]); } private  StaticUsingArgs();   }### Answer:
@Test public void testGetProperties() { assertTrue(Arrays.equals(new String[] { "foo-value", "bar-value", "baz-value" }, StaticUsingArgs.getProperties("foo", "bar", "baz"))); assertEquals(0, StaticUsingArgs.getProperties().length); assertNull(StaticUsingArgs.getProperties((String[]) null)); }