Buggy code:
public abstract class AbstractRemoteServiceTest extends ContainerAbstractTestCase { protected IRemoteServiceContainerAdapter [ ] adapters = null ; protected IRemoteServiceID [ ] ids ; protected abstract String getClientContainerName ( ) { } protected void setClientCount ( int count ) { } protected void setupRemoteServiceAdapters ( ) throws Exception { } protected IRemoteServiceContainerAdapter [ ] getRemoteServiceAdapters ( ) { } protected IRemoteServiceListener createRemoteServiceListener ( final boolean server ) { } protected void addRemoteServiceListeners ( ) { } protected IRemoteServiceRegistration registerService ( IRemoteServiceContainerAdapter adapter , String serviceInterface , Object service , Dictionary serviceProperties , int sleepTime ) { } protected IRemoteServiceReference [ ] getRemoteServiceReferences ( IRemoteServiceContainerAdapter adapter , ID target , String clazz , String filter ) { } protected IRemoteServiceReference [ ] getRemoteServiceReferences ( IRemoteServiceContainerAdapter adapter , ID [ ] targets , String clazz , String filter ) { } protected IRemoteService getRemoteService ( IRemoteServiceContainerAdapter adapter , ID target , String clazz , String filter , int sleepTime ) { } protected String getFilterFromServiceProperties ( Dictionary serviceProperties ) { } protected IRemoteService registerAndGetRemoteService ( IRemoteServiceContainerAdapter server , IRemoteServiceContainerAdapter client , ID target , String serviceName , Dictionary serviceProperties , int sleepTime ) { } protected IRemoteCall createRemoteCall ( final String method , final Object [ ] params ) { } protected Object createService ( ) { } public void testRemoteServiceAdapters ( ) throws Exception { } public void testRemoteServiceNamespace ( ) throws Exception { } public void testRegisterService ( ) throws Exception { } public void testUnregisterService ( ) throws Exception { } public void testGetServiceReferences ( ) throws Exception { } public void testGetServiceReferencesWithFilter ( ) throws Exception { } public void testGetServiceReferencesWithFilterFail ( ) throws Exception { } public void testGetService ( ) throws Exception { } protected IRemoteCall createRemoteConcat ( String first , String second ) { } protected IRemoteService registerAndGetRemoteService ( ) { final IRemoteServiceContainerAdapter [ ] adapters = getRemoteServiceAdapters ( ) ; <START_BUG> return registerAndGetRemoteService ( adapters [ 0 ] , adapters [ 1 ] , getClient ( 0 ) . getConnectedID ( ) , IConcatService . class . getName ( ) , customizeProperties ( null ) , 0 ) ; <END_BUG> } protected IRemoteCallListener createRemoteCallListener ( ) { } public void testCallSynch ( ) throws Exception { } protected void traceCallStart ( String callType ) { } protected void traceCallEnd ( String callType , Object result ) { } protected void traceCallEnd ( String callType ) { } public void testBadCallSynch ( ) throws Exception { } public void testCallAsynch ( ) throws Exception { } public void testFireAsynch ( ) throws Exception { } public void testProxy ( ) throws Exception { } public void testAsyncResult ( ) throws Exception { } IRemoteService remoteService ; boolean done ; public void testServiceListener ( ) throws Exception { } protected Dictionary customizeProperties ( Dictionary props ) { } }

Fix:
return registerAndGetRemoteService ( adapters [ 0 ] , adapters [ 1 ] , getClient ( 0 ) . getConnectedID ( ) , IConcatService . class . getName ( ) , customizeProperties ( null ) , 5000 ) ;