@Test
public void testGetSupportedControlsWithStartTLS() throws Exception
{
LdapNetworkConnection connection = new LdapNetworkConnection( tlsConfig );
tlsConfig.setUseTls( true );
connection.connect();
Dn dn = new Dn( "uid=admin,ou=system" );
connection.bind( dn.getName(), "secret" );
List<String> controlList = connection.getSupportedControls();