### Question:
ServerGroupConfiguration implements ConnectionConfig { public String getBindDN() { return instance.getAuthID(); } ServerGroupConfiguration(ServerGroup group, ServerInstance instance); String getBindDN(); char[] getBindPassword(); int getMaxConnections(); int getLdapHeartbeat(); Set<LDAPURL> getLDAPURLs();  }### Answer:
@Test public void shouldReturnBindDNFromInstance() { ServerInstance mockInstance = mock(ServerInstance.class); ServerGroup mockGroup = mock(ServerGroup.class); ServerGroupConfiguration config = new ServerGroupConfiguration(mockGroup, mockInstance); config.getBindDN(); verify(mockInstance).getAuthID(); }