### Question:
WinRmMachineLocation extends AbstractLocation implements MachineLocation { @Override public Set<String> getPrivateAddresses() { Iterable<String> result = getConfig(PRIVATE_ADDRESSES); return (result == null) ? ImmutableSet.<String>of() : ImmutableSet.copyOf(result); }  @Override void init(); String getUser(); @Override InetAddress getAddress(); @Override OsDetails getOsDetails(); @Override MachineDetails getMachineDetails(); @Nullable @Override String getHostname(); @Override Set<String> getPublicAddresses(); @Override Set<String> getPrivateAddresses(); @Deprecated WinRmToolResponse executeScript(String script); @Deprecated WinRmToolResponse executeScript(List<String> script); @Deprecated WinRmToolResponse executeScript(Map<?,?> props, List<String> script); WinRmToolResponse executeCommand(String script); WinRmToolResponse executeCommand(List<String> script); WinRmToolResponse executeCommand(Map<?,?> props, List<String> script); WinRmToolResponse executePsScript(String psScript); WinRmToolResponse executePsScript(List<String> psScript); WinRmToolResponse executePsScript(Map<?,?> props, List<String> psScript); int copyTo(File source, String destination); int copyTo(InputStream source, String destination); int copyTo(Map<?,?> props, InputStream source, String destination); static String getDefaultUserMetadataString(); static final ConfigKey<InetAddress> ADDRESS; static final ConfigKey<Integer> WINRM_PORT; static final ConfigKey<String> USER; static final ConfigKey<String> PASSWORD; static final ConfigKey<Integer> COPY_FILE_CHUNK_SIZE_BYTES; static final ConfigKey<String> WINRM_TOOL_CLASS; static final String WINRM_TOOL_CLASS_PROPERTIES_PREFIX; @Deprecated
    static final ConfigKey<Integer> EXECUTION_ATTEMPTS; static final ConfigKey<Integer> EXEC_TRIES; @SuppressWarnings("serial")
    static final ConfigKey<Iterable<String>> PRIVATE_ADDRESSES; @SuppressWarnings("serial")
    static final ConfigKey<Map<Integer, String>> TCP_PORT_MAPPINGS; static final Set<HasConfigKey<?>> ALL_WINRM_CONFIG_KEYS; static final Set<String> ALL_WINRM_CONFIG_KEY_NAMES; }### Answer:
@Test public void testConfigurePrivateAddresses() throws Exception { WinRmMachineLocation host = mgmt.getLocationManager().createLocation(LocationSpec.create(WinRmMachineLocation.class) .configure("address", Networking.getLocalHost()) .configure(WinRmMachineLocation.PRIVATE_ADDRESSES, ImmutableList.of("1.2.3.4")) .configure(BrooklynConfigKeys.SKIP_ON_BOX_BASE_DIR_RESOLUTION, true)); assertEquals(host.getPrivateAddresses(), ImmutableSet.of("1.2.3.4")); }