### Question:
OpushConfigurationLoader { @VisibleForTesting static void checkHostAddress(Path file, String host) throws UnknownHostException { checkConfigurationEntry(file, "host", host != null && InetAddress.getByName(host) != null); }  static GlobalAppConfiguration<OpushConfiguration> loadFromFiles(Path... files);  }### Answer:
@Test public void checkHostAddressAsIP() throws Exception { mocks.replay(); OpushConfigurationLoader.checkHostAddress(file, "127.0.0.1"); mocks.verify(); }
@Test public void checkHostAddressAsHost() throws Exception { mocks.replay(); OpushConfigurationLoader.checkHostAddress(file, "localhost"); mocks.verify(); }
@Test(expected=UnknownHostException.class) public void checkHostAddressBadFormat() throws Exception { try { mocks.replay(); OpushConfigurationLoader.checkHostAddress(file, "this is a bad format"); } catch (UnknownHostException e) { mocks.verify(); throw e; } }