### Question:
HostStatesImpl implements HostStates, Closeable { public static Builder builder() { return new Builder(); } private  HostStatesImpl(Builder builder); @Override boolean isUp(InetAddress address); @Override boolean isUp(Host host); @Override void close(); static Builder builder();  }### Answer:
@Test public void testUseNullJmxProxyFactoryShouldThrow() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> HostStatesImpl.builder() .withJmxProxyFactory(null) .build()); }