### Question:
TableStorageStatesImpl implements TableStorageStates, Closeable { public static Builder builder() { return new Builder(); } private  TableStorageStatesImpl(Builder builder); @Override long getDataSize(TableReference tableReference); @Override long getDataSize(); @Override void close(); static Builder builder();  }### Answer:
@Test public void testBuildWithNullReplicatedTableProvider() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> TableStorageStatesImpl.builder() .withJmxProxyFactory(myJmxProxyFactory) .withReplicatedTableProvider(null) .build()); }
@Test public void testBuildWithNullJmxProxyFactory() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> TableStorageStatesImpl.builder() .withJmxProxyFactory(null) .withReplicatedTableProvider(myReplicatedTableProviderMock) .build()); }