Program: 53292
Project: 53292
Buggy source:
@Test public void testRequiredInPrimaryZipPredicateWithProguard() throws IOException {
  Path proguardMappingFile=Paths.get("String_Node_Str");
  Path primaryDexClassesFile=Paths.get("String_Node_Str");
  SplitZipStep splitZipStep=new SplitZipStep(ImmutableSet.<String>of(),"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str",Optional.of(proguardMappingFile),ImmutableSet.of("String_Node_Str","String_Node_Str"),Optional.of(primaryDexClassesFile),ZipSplitter.DexSplitStrategy.MAXIMIZE_PRIMARY_DEX_SIZE,DexStore.JAR,"String_Node_Str",true,4 * 1024 * 1024);
  List<String> linesInMappingFile=ImmutableList.of("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str");
  List<String> linesInManifestFile=ImmutableList.of("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str");
  ProjectFilesystem projectFilesystem=EasyMock.createMock(ProjectFilesystem.class);
  EasyMock.expect(projectFilesystem.readLines(primaryDexClassesFile)).andReturn(linesInManifestFile);
  EasyMock.expect(projectFilesystem.readLines(proguardMappingFile)).andReturn(linesInMappingFile);
  ExecutionContext context=EasyMock.createMock(ExecutionContext.class);
  EasyMock.expect(context.getProjectFilesystem()).andReturn(projectFilesystem).anyTimes();
  EasyMock.replay(projectFilesystem,context);
  Predicate<String> requiredInPrimaryZipPredicate=splitZipStep.createRequiredInPrimaryZipPredicate(context);
  assertTrue("String_Node_Str",requiredInPrimaryZipPredicate.apply("String_Node_Str"));
  assertTrue("String_Node_Str",requiredInPrimaryZipPredicate.apply("String_Node_Str"));
  assertTrue("String_Node_Str",requiredInPrimaryZipPredicate.apply("String_Node_Str"));
  assertTrue("String_Node_Str",requiredInPrimaryZipPredicate.apply("String_Node_Str"));
  assertFalse("String_Node_Str",requiredInPrimaryZipPredicate.apply("String_Node_Str"));
  assertFalse("String_Node_Str",requiredInPrimaryZipPredicate.apply("String_Node_Str"));
  assertFalse("String_Node_Str",requiredInPrimaryZipPredicate.apply("String_Node_Str"));
  EasyMock.verify(projectFilesystem,context);
}

Fixed version (ground truth):
@Test public void testRequiredInPrimaryZipPredicateWithProguard() throws IOException {
  Path proguardMappingFile=Paths.get("String_Node_Str");
  Path primaryDexClassesFile=Paths.get("String_Node_Str");
  SplitZipStep splitZipStep=new SplitZipStep(ImmutableSet.<String>of(),"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str",Optional.of(proguardMappingFile),ImmutableSet.of("String_Node_Str","String_Node_Str"),Optional.of(primaryDexClassesFile),ZipSplitter.DexSplitStrategy.MAXIMIZE_PRIMARY_DEX_SIZE,DexStore.JAR,"String_Node_Str",true,4 * 1024 * 1024);
  List<String> linesInMappingFile=ImmutableList.of("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str");
  List<String> linesInManifestFile=ImmutableList.of("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str");
  ProjectFilesystem projectFilesystem=EasyMock.createMock(ProjectFilesystem.class);
  EasyMock.expect(projectFilesystem.readLines(primaryDexClassesFile)).andReturn(linesInManifestFile);
  EasyMock.expect(projectFilesystem.exists(proguardMappingFile.toString())).andReturn(true);
  EasyMock.expect(projectFilesystem.readLines(proguardMappingFile)).andReturn(linesInMappingFile);
  ExecutionContext context=EasyMock.createMock(ExecutionContext.class);
  EasyMock.expect(context.getProjectFilesystem()).andReturn(projectFilesystem).anyTimes();
  EasyMock.replay(projectFilesystem,context);
  Predicate<String> requiredInPrimaryZipPredicate=splitZipStep.createRequiredInPrimaryZipPredicate(context);
  assertTrue("String_Node_Str",requiredInPrimaryZipPredicate.apply("String_Node_Str"));
  assertTrue("String_Node_Str",requiredInPrimaryZipPredicate.apply("String_Node_Str"));
  assertTrue("String_Node_Str",requiredInPrimaryZipPredicate.apply("String_Node_Str"));
  assertTrue("String_Node_Str",requiredInPrimaryZipPredicate.apply("String_Node_Str"));
  assertFalse("String_Node_Str",requiredInPrimaryZipPredicate.apply("String_Node_Str"));
  assertFalse("String_Node_Str",requiredInPrimaryZipPredicate.apply("String_Node_Str"));
  assertFalse("String_Node_Str",requiredInPrimaryZipPredicate.apply("String_Node_Str"));
  EasyMock.verify(projectFilesystem,context);
}