### Question:
UberjarMain { public void start( String instanceDirectory ) { InstanceLayout layout = new InstanceLayout( instanceDirectory ); service = new ApacheDsService(); try { LOG.info( "Starting the service." ); service.start( layout ); startShutdownListener( layout ); } catch ( Exception e ) { LOG.error( "Failed to start the service.", e ); stop(); System.exit( 1 ); } }  static void main( String[] args ); void start( String instanceDirectory ); void repair( String instanceDirectory ); void stop();  }### Answer:
@Test public void nisTest() throws Exception { uberjarMain.start( instanceDirectory.toString() ); Thread connectionVerificationThread = new Thread() { public void run() { LdapConnection connection = null; try { connection = createConnection(); connection.modify( "cn=nis,ou=schema", new DefaultModification( ModificationOperation.REPLACE_ATTRIBUTE, "m-disabled", "FALSE" ) ); connection.loadSchema(); Entry nisSchema = connection.lookup( "cn=nis,ou=schema" ); assertEquals( "FALSE", nisSchema.get( "m-disabled" ).getString() ); Entry posixAccount = connection.lookup( "m-oid=1.3.6.1.1.1.2.0,ou=objectClasses,cn=nis,ou=schema" ); if ( posixAccount == null ) { verified = false; return; } } catch ( Exception e ) { verified = false; } finally { try { connection.close(); } catch ( Exception e ) { } } }; }; connectionVerificationThread.start(); connectionVerificationThread.join(); if ( !verified ) { fail(); } }