Buggy code:
public class KurentoServicesTestHelper { public static final String KURENTO_TESTFILES_PROP = "kurento.test.files" ; public static final String KURENTO_TESTFILES_DEFAULT = "//var//lib//jenkins//test-files" ; private static final String PROJECT_PATH_PROP = "project.path" ; private static final String PROJECT_PATH_DEFAULT = "." ; public static final String AUTOSTART_FALSE_VALUE = "false" ; public static final String AUTOSTART_TEST_VALUE = "test" ; public static final String AUTOSTART_TEST_SUITE_VALUE = "testsuite" ; public static final String KMS_AUTOSTART_PROP = "kms.autostart" ; public static final String KMS_AUTOSTART_DEFAULT = KurentoServicesTestHelper . AUTOSTART_TEST_VALUE ; public static final String KCS_AUTOSTART_PROP = "kcs.autostart" ; public static final String KCS_AUTOSTART_DEFAULT = KurentoServicesTestHelper . AUTOSTART_FALSE_VALUE ; public static final String KMS_TRANSPORT_PROP = "kms.transport" ; public static final String KMS_TRANSPORT_WS_VALUE = "ws" ; public static final String KMS_TRANSPORT_RABBITMQ_VALUE = "rabbitmq" ; public static final String KMS_TRANSPORT_DEFAULT = KurentoServicesTestHelper . KMS_TRANSPORT_WS_VALUE ; public static final String KMS_PRINT_LOG_PROP = "kms.print.log" ; public static final String KMS_PRINT_LOG_DEFAULT = "true" ; public static final String KMS_HTTP_PORT_PROP = "kms.http.port" ; public static final int KMS_HTTP_PORT_DEFAULT = 9091 ; public static final String KMS_RABBITMQ_ADDRESS_PROP = "kms.rabbitmq.address" ; public static final Address KMS_RABBITMQ_ADDRESS_DEFAULT = new Address ( "127.0.0.1" , 5672 ) ; public static final String KMS_WS_URI_PROP = "kms.ws.uri" ; public static final String KMS_WS_URI_DEFAULT = "ws:////localhost:8888//kurento" ; public static final String KCS_WS_URI_PROP = "kcs.ws.uri" ; public static final String KCS_WS_URI_DEFAULT = "ws:////localhost:8889//kurento" ; public static final String APP_HTTP_PORT_PROP = "server.port" ; public static final int APP_HTTP_PORT_DEFAULT = 7779 ; public static final String BOWER_KURENTO_CLIENT_TAG_PROP = "bower.kurentoclient.tag" ; public static final String BOWER_KURENTO_CLIENT_TAG_DEFAULT = "" ; public static final String BOWER_KURENTO_UTILS_TAG_PROP = "bower.kurentoutils.tag" ; public static final String BOWER_KURENTO_UTILS_TAG_DEFAULT = "" ; private static KurentoMediaServerManager kms ; private static KurentoControlServerManager kcs ; private static String testCaseName ; private static String testName ; private static String testDir ; private static String kmsAutostart = KurentoServicesTestHelper . KMS_AUTOSTART_DEFAULT ; private static String kcsAutostart = KurentoServicesTestHelper . KMS_AUTOSTART_DEFAULT ; private static String kmsPrintLog ; private static File logFile ; private static ConfigurableApplicationContext appContext ; public static void startKurentoServicesIfNeccessary ( ) throws IOException { } private static void startKurentoControlServerIfNecessary ( ) { } private static void startKurentoMediaServerIfNecessary ( ) throws IOException { } public static KurentoMediaServerManager startKurentoMediaServer ( String wsUri , int httpPort ) throws IOException { } public static KurentoMediaServerManager startKurentoMediaServer ( ) throws IOException { } public static KurentoControlServerManager startKurentoControlServer ( ) { } public static KurentoControlServerManager startKurentoControlServer ( String wsUriProp ) { } public static ConfigurableApplicationContext startHttpServer ( Object ... sources ) { } public static void teardownServices ( ) throws IOException { } public static void teardownHttpServer ( ) { } public static void teardownKurentoControlServer ( ) { } public static void teardownKurentoMediaServer ( ) throws IOException { } public static void setTestName ( String testName ) { } public static String getTestName ( ) { } public static String getSimpleTestName ( ) { String out = KurentoServicesTestHelper . testName ; <START_BUG> if ( ( out . indexOf ( ":" ) ) != ( - 1 ) ) { <END_BUG> out = ( out . substring ( 0 , out . indexOf ( ":" ) ) ) + "]" ; } return out ; } public static void setTestCaseName ( String testCaseName ) { } public static String getTestCaseName ( ) { } public static void setTestDir ( String testDir ) { } public static String getTestDir ( ) { } public static boolean printKmsLog ( ) { } public static int getKmsHttpPort ( ) { } public static int getAppHttpPort ( ) { } public static String getBowerKurentoClientTag ( ) { } public static String getBowerKurentoUtilsTag ( ) { } public static String getTestFilesPath ( ) { } public static Address getRabbitMqAddress ( ) { } public static Address getRabbitMqAddress ( String prefix ) { } public static String getWsUri ( ) { } public static String getWsUri ( String prefix ) { } public static void setServerLogFilePath ( File logFile ) { } public static File getServerLogFile ( ) { } private static void createFolder ( String folder ) { } }

Fix:
if ( ( ( KurentoServicesTestHelper . testName ) != null ) && ( ( out . indexOf ( ":" ) ) != ( - 1 ) ) ) {