AddressSet { public BoltServerAddress[] toArray() { return addresses; }  BoltServerAddress[] toArray(); int size(); synchronized void update( Set<BoltServerAddress> addresses ); synchronized void remove( BoltServerAddress address ); @Override String toString();  }
@Test void shouldExposeEmptyArrayWhenEmpty() { AddressSet addressSet = new AddressSet(); BoltServerAddress[] addresses = addressSet.toArray(); assertEquals( 0, addresses.length ); }