Program: 5693
Project: 5693
Buggy source:
@Test public void testRuntimeArgs() throws Exception {
  ServiceId service=fakeAppId.service(PrefixedEchoHandler.NAME);
  ServiceId serviceV1=fakeAppIdV1.service(PrefixedEchoHandler.NAME);
  String serviceName=String.format("String_Node_Str",FakeApp.NAME,PrefixedEchoHandler.NAME);
  String serviceArgument=String.format("String_Node_Str",serviceName,ApplicationId.DEFAULT_VERSION);
  String serviceV1Argument=String.format("String_Node_Str",serviceName,V1_SNAPSHOT);
  Map<String,String> runtimeArgs=ImmutableMap.of("String_Node_Str","String_Node_Str");
  String runtimeArgsJson=GSON.toJson(runtimeArgs);
  String runtimeArgsKV=Joiner.on("String_Node_Str").withKeyValueSeparator("String_Node_Str").join(runtimeArgs);
  testCommandOutputContains(cli,"String_Node_Str" + serviceArgument + "String_Node_Str"+ runtimeArgsKV+ "String_Node_Str","String_Node_Str");
  assertProgramStatus(programClient,service,"String_Node_Str");
  try {
    testCommandOutputContains(cli,"String_Node_Str" + serviceName + "String_Node_Str","String_Node_Str");
    testCommandOutputContains(cli,"String_Node_Str" + serviceName,"String_Node_Str");
    assertProgramStatus(programClient,service,"String_Node_Str");
    Map<String,String> runtimeArgs1=ImmutableMap.of("String_Node_Str","String_Node_Str");
    String runtimeArgs1Json=GSON.toJson(runtimeArgs1);
    String runtimeArgs1KV=Joiner.on("String_Node_Str").withKeyValueSeparator("String_Node_Str").join(runtimeArgs1);
    testCommandOutputContains(cli,"String_Node_Str" + serviceV1Argument + "String_Node_Str"+ runtimeArgs1KV+ "String_Node_Str","String_Node_Str");
    assertProgramStatus(programClient,serviceV1,"String_Node_Str");
    testCommandOutputContains(cli,"String_Node_Str" + serviceV1Argument + "String_Node_Str","String_Node_Str");
    testCommandOutputContains(cli,"String_Node_Str" + serviceV1Argument,"String_Node_Str");
    assertProgramStatus(programClient,serviceV1,"String_Node_Str");
    testCommandOutputContains(cli,"String_Node_Str" + serviceName + "String_Node_Str"+ runtimeArgs1KV+ "String_Node_Str","String_Node_Str");
    testCommandOutputContains(cli,"String_Node_Str" + serviceName,"String_Node_Str");
    testCommandOutputContains(cli,"String_Node_Str" + serviceName,runtimeArgs1Json);
    testCommandOutputContains(cli,"String_Node_Str" + serviceName + "String_Node_Str","String_Node_Str");
    testCommandOutputContains(cli,"String_Node_Str" + serviceV1Argument + "String_Node_Str"+ runtimeArgsKV+ "String_Node_Str","String_Node_Str");
    testCommandOutputContains(cli,"String_Node_Str" + serviceV1Argument,"String_Node_Str");
    testCommandOutputContains(cli,"String_Node_Str" + serviceV1Argument,runtimeArgsJson);
    testCommandOutputContains(cli,"String_Node_Str" + serviceV1Argument + "String_Node_Str","String_Node_Str");
  }
  finally {
    programClient.stopAll(NamespaceId.DEFAULT.toId());
  }
}

Fixed version (ground truth):
@Test public void testRuntimeArgs() throws Exception {
  ServiceId service=fakeAppId.service(PrefixedEchoHandler.NAME);
  ServiceId serviceV1=fakeAppIdV1.service(PrefixedEchoHandler.NAME);
  String serviceName=String.format("String_Node_Str",FakeApp.NAME,PrefixedEchoHandler.NAME);
  String serviceArgument=String.format("String_Node_Str",serviceName,ApplicationId.DEFAULT_VERSION);
  String serviceV1Argument=String.format("String_Node_Str",serviceName,V1_SNAPSHOT);
  Map<String,String> runtimeArgs=ImmutableMap.of("String_Node_Str","String_Node_Str");
  String runtimeArgsJson=GSON.toJson(runtimeArgs);
  String runtimeArgsKV=Joiner.on("String_Node_Str").withKeyValueSeparator("String_Node_Str").join(runtimeArgs);
  testCommandOutputContains(cli,"String_Node_Str" + serviceArgument + "String_Node_Str"+ runtimeArgsKV+ "String_Node_Str","String_Node_Str");
  assertProgramStatus(programClient,service,"String_Node_Str");
  try {
    testCommandOutputContains(cli,"String_Node_Str" + serviceName + "String_Node_Str","String_Node_Str");
    testCommandOutputContains(cli,"String_Node_Str" + serviceName,"String_Node_Str");
    assertProgramStatus(programClient,service,"String_Node_Str");
    Map<String,String> runtimeArgs1=ImmutableMap.of("String_Node_Str","String_Node_Str");
    String runtimeArgs1Json=GSON.toJson(runtimeArgs1);
    String runtimeArgs1KV=Joiner.on("String_Node_Str").withKeyValueSeparator("String_Node_Str").join(runtimeArgs1);
    testCommandOutputContains(cli,"String_Node_Str" + serviceV1Argument + "String_Node_Str"+ runtimeArgs1KV+ "String_Node_Str","String_Node_Str");
    assertProgramStatus(programClient,serviceV1,"String_Node_Str");
    testCommandOutputContains(cli,"String_Node_Str" + serviceV1Argument + "String_Node_Str","String_Node_Str");
    testCommandOutputContains(cli,"String_Node_Str" + serviceV1Argument,"String_Node_Str");
    assertProgramStatus(programClient,serviceV1,"String_Node_Str");
    testCommandOutputContains(cli,"String_Node_Str" + serviceName + "String_Node_Str"+ runtimeArgs1KV+ "String_Node_Str","String_Node_Str");
    testCommandOutputContains(cli,"String_Node_Str" + serviceName,"String_Node_Str");
    testCommandOutputContains(cli,"String_Node_Str" + serviceName,runtimeArgs1Json);
    testCommandOutputContains(cli,"String_Node_Str" + serviceName + "String_Node_Str","String_Node_Str");
    testCommandOutputContains(cli,"String_Node_Str" + serviceV1Argument + "String_Node_Str"+ runtimeArgsKV+ "String_Node_Str","String_Node_Str");
    testCommandOutputContains(cli,"String_Node_Str" + serviceV1Argument,"String_Node_Str");
    testCommandOutputContains(cli,"String_Node_Str" + serviceV1Argument,runtimeArgsJson);
    testCommandOutputContains(cli,"String_Node_Str" + serviceV1Argument + "String_Node_Str","String_Node_Str");
  }
  finally {
    programClient.stopAll(NamespaceId.DEFAULT);
  }
}