Program: 53702
Project: 53702
Buggy source:
public void testOutputCssMapArtifactWithTestData() throws UnableToCompleteException {
  UnitTestTreeLogger testLogger=new UnitTestTreeLogger.Builder().createLogger();
  ResourceContext mockResourceContext=EasyMock.createMock(ResourceContext.class);
  JMethod mockJMethod1=EasyMock.createMock(JMethod.class);
  JMethod mockJMethod2=EasyMock.createMock(JMethod.class);
  JMethod mockJMethod3=EasyMock.createMock(JMethod.class);
  JClassType mockJClassType1=EasyMock.createMock(JClassType.class);
  JClassType mockJClassType2=EasyMock.createMock(JClassType.class);
  JClassType mockJClassType3=EasyMock.createMock(JClassType.class);
  Map<JMethod,String> testMap=new LinkedHashMap<JMethod,String>();
  testMap.put(mockJMethod1,"String_Node_Str");
  testMap.put(mockJMethod2,"String_Node_Str");
  testMap.put(mockJMethod3,"String_Node_Str");
  ByteArrayOutputStream testOutputStream=new ByteArrayOutputStream();
  GeneratorContext mockGeneratorContext=EasyMock.createMock(GeneratorContext.class);
  GeneratedResource mockGeneratedResource=EasyMock.createMock(GeneratedResource.class);
  EasyMock.expect(mockResourceContext.getGeneratorContext()).andReturn(mockGeneratorContext);
  EasyMock.expectLastCall().times(2);
  EasyMock.expect(mockGeneratorContext.tryCreateResource(testLogger,"String_Node_Str")).andReturn(testOutputStream);
  EasyMock.expect(mockJMethod1.getEnclosingType()).andReturn(mockJClassType1);
  EasyMock.expect(mockJClassType1.getQualifiedSourceName()).andReturn("String_Node_Str");
  EasyMock.expect(mockJMethod1.getName()).andReturn("String_Node_Str");
  EasyMock.expect(mockJMethod2.getEnclosingType()).andReturn(mockJClassType2);
  EasyMock.expect(mockJClassType2.getQualifiedSourceName()).andReturn("String_Node_Str");
  EasyMock.expect(mockJMethod2.getName()).andReturn("String_Node_Str");
  EasyMock.expect(mockJMethod3.getEnclosingType()).andReturn(mockJClassType3);
  EasyMock.expect(mockJClassType3.getQualifiedSourceName()).andReturn("String_Node_Str");
  EasyMock.expect(mockJMethod3.getName()).andReturn("String_Node_Str");
  EasyMock.expect(mockGeneratorContext.commitResource(testLogger,testOutputStream)).andReturn(mockGeneratedResource);
  EasyMock.replay(mockResourceContext);
  EasyMock.replay(mockGeneratorContext);
  EasyMock.replay(mockJMethod1);
  EasyMock.replay(mockJMethod2);
  EasyMock.replay(mockJMethod3);
  EasyMock.replay(mockJClassType1);
  EasyMock.replay(mockJClassType2);
  EasyMock.replay(mockJClassType3);
  CssResourceGenerator crg=new CssResourceGenerator();
  crg.outputCssMapArtifact(testLogger,mockResourceContext,testMap,"String_Node_Str");
  String expectedOutput="String_Node_Str" + "String_Node_Str" + "String_Node_Str";
  assertEquals(expectedOutput,testOutputStream.toString());
  testLogger.assertCorrectLogEntries();
  EasyMock.verify(mockResourceContext);
  EasyMock.verify(mockGeneratorContext);
  EasyMock.verify(mockJMethod1);
  EasyMock.verify(mockJMethod2);
  EasyMock.verify(mockJMethod3);
  EasyMock.verify(mockJClassType1);
  EasyMock.verify(mockJClassType2);
  EasyMock.verify(mockJClassType3);
}

Fixed version (ground truth):
public void testOutputCssMapArtifactWithTestData() throws UnableToCompleteException {
  UnitTestTreeLogger testLogger=new UnitTestTreeLogger.Builder().createLogger();
  ResourceContext mockResourceContext=EasyMock.createMock(ResourceContext.class);
  JMethod mockJMethod1=EasyMock.createMock(JMethod.class);
  JMethod mockJMethod2=EasyMock.createMock(JMethod.class);
  JMethod mockJMethod3=EasyMock.createMock(JMethod.class);
  JClassType mockJClassType1=EasyMock.createMock(JClassType.class);
  JClassType mockJClassType2=EasyMock.createMock(JClassType.class);
  JClassType mockJClassType3=EasyMock.createMock(JClassType.class);
  Map<JMethod,String> testMap=new LinkedHashMap<JMethod,String>();
  testMap.put(mockJMethod1,"String_Node_Str");
  testMap.put(mockJMethod2,"String_Node_Str");
  testMap.put(mockJMethod3,"String_Node_Str");
  ByteArrayOutputStream testOutputStream=new ByteArrayOutputStream();
  GeneratorContext mockGeneratorContext=EasyMock.createMock(GeneratorContext.class);
  GeneratedResource mockGeneratedResource=EasyMock.createMock(GeneratedResource.class);
  EasyMock.expect(mockResourceContext.getGeneratorContext()).andReturn(mockGeneratorContext);
  EasyMock.expectLastCall().times(2);
  EasyMock.expect(mockGeneratorContext.tryCreateResource(testLogger,"String_Node_Str")).andReturn(testOutputStream);
  EasyMock.expect(mockJMethod1.getEnclosingType()).andReturn(mockJClassType1);
  EasyMock.expect(mockJClassType1.getQualifiedSourceName()).andReturn("String_Node_Str");
  EasyMock.expect(mockJMethod1.getName()).andReturn("String_Node_Str");
  EasyMock.expect(mockJMethod2.getEnclosingType()).andReturn(mockJClassType2);
  EasyMock.expect(mockJClassType2.getQualifiedSourceName()).andReturn("String_Node_Str");
  EasyMock.expect(mockJMethod2.getName()).andReturn("String_Node_Str");
  EasyMock.expect(mockJMethod3.getEnclosingType()).andReturn(mockJClassType3);
  EasyMock.expect(mockJClassType3.getQualifiedSourceName()).andReturn("String_Node_Str");
  EasyMock.expect(mockJMethod3.getName()).andReturn("String_Node_Str");
  EasyMock.expect(mockGeneratorContext.commitResource(testLogger,testOutputStream)).andReturn(mockGeneratedResource);
  JMethod method=EasyMock.createMock(JMethod.class);
  JClassType bundleType=EasyMock.createMock(JClassType.class);
  EasyMock.expect(method.getEnclosingType()).andReturn(bundleType);
  EasyMock.expect(bundleType.getQualifiedSourceName()).andReturn("String_Node_Str");
  EasyMock.expect(method.getName()).andReturn("String_Node_Str");
  EasyMock.replay(mockResourceContext);
  EasyMock.replay(mockGeneratorContext);
  EasyMock.replay(mockJMethod1);
  EasyMock.replay(mockJMethod2);
  EasyMock.replay(mockJMethod3);
  EasyMock.replay(mockJClassType1);
  EasyMock.replay(mockJClassType2);
  EasyMock.replay(mockJClassType3);
  EasyMock.replay(method);
  EasyMock.replay(bundleType);
  CssResourceGenerator crg=new CssResourceGenerator();
  crg.outputCssMapArtifact(testLogger,mockResourceContext,method,testMap);
  String expectedOutput="String_Node_Str" + "String_Node_Str" + "String_Node_Str";
  assertEquals(expectedOutput,testOutputStream.toString());
  testLogger.assertCorrectLogEntries();
  EasyMock.verify(mockResourceContext);
  EasyMock.verify(mockGeneratorContext);
  EasyMock.verify(mockJMethod1);
  EasyMock.verify(mockJMethod2);
  EasyMock.verify(mockJMethod3);
  EasyMock.verify(mockJClassType1);
  EasyMock.verify(mockJClassType2);
  EasyMock.verify(mockJClassType3);
  EasyMock.verify(method);
  EasyMock.verify(bundleType);
}