Program: 83909
Project: 83909
Buggy source:
@Test public void addWarp() throws Exception {
  Player mockPlayerOne=Mockito.mock(Player.class);
  when(mockPlayerOne.getDisplayName()).thenReturn(PLAYER_ONE_NAME);
  World mockWorld=Mockito.mock(World.class);
  when(mockWorld.getName()).thenReturn("String_Node_Str");
  Location mockLocationPrivate=Mockito.mock(Location.class);
  when(mockLocationPrivate.getWorld()).thenReturn(mockWorld);
  when(mockLocationPrivate.getX()).thenReturn(10.0);
  when(mockLocationPrivate.getY()).thenReturn(20.0);
  when(mockLocationPrivate.getZ()).thenReturn(30.0);
  when(mockLocationPrivate.getPitch()).thenReturn(1.5f);
  when(mockLocationPrivate.getYaw()).thenReturn(1.75f);
  Location mockLocationUnlisted=Mockito.mock(Location.class);
  when(mockLocationUnlisted.getWorld()).thenReturn(mockWorld);
  when(mockLocationUnlisted.getX()).thenReturn(20.0);
  when(mockLocationUnlisted.getY()).thenReturn(30.0);
  when(mockLocationUnlisted.getZ()).thenReturn(40.0);
  when(mockLocationUnlisted.getPitch()).thenReturn(1.5f);
  when(mockLocationUnlisted.getYaw()).thenReturn(1.75f);
  Location mockLocationListed=Mockito.mock(Location.class);
  when(mockLocationListed.getWorld()).thenReturn(mockWorld);
  when(mockLocationListed.getX()).thenReturn(30.0);
  when(mockLocationListed.getY()).thenReturn(40.0);
  when(mockLocationListed.getZ()).thenReturn(50.0);
  when(mockLocationListed.getPitch()).thenReturn(1.5f);
  when(mockLocationListed.getYaw()).thenReturn(1.75f);
  UnitTestPersistenceProvider testPersistenceProvider=new UnitTestPersistenceProvider();
  WarpManager warpManager=new WarpManager(mockNiftyWarpPlugin);
  Warp privateWarp=warpManager.addWarp("String_Node_Str",mockPlayerOne,WarpType.PRIVATE,mockLocationPrivate,testPersistenceProvider);
  Warp unlistedWarp=warpManager.addWarp("String_Node_Str",mockPlayerOne,WarpType.UNLISTED,mockLocationUnlisted,testPersistenceProvider);
  Warp listedWarp=warpManager.addWarp("String_Node_Str",mockPlayerOne,WarpType.LISTED,mockLocationListed,testPersistenceProvider);
  List<Warp> testList1=testPersistenceProvider.getWarpsByName("String_Node_Str");
  List<Warp> testList2=testPersistenceProvider.getWarpsByName("String_Node_Str");
  List<Warp> testList3=testPersistenceProvider.getWarpsByName("String_Node_Str");
  assertEquals(testList1.get(0),privateWarp);
  assertEquals(testList2.get(0),unlistedWarp);
  assertEquals(testList3.get(0),listedWarp);
}

Fixed version (ground truth):
@Test public void addWarp() throws Exception {
  Player mockPlayerOne=Mockito.mock(Player.class);
  when(mockPlayerOne.getDisplayName()).thenReturn(PLAYER_ONE_NAME);
  World mockWorld=Mockito.mock(World.class);
  when(mockWorld.getName()).thenReturn(WORLD_NAME);
  Location mockLocationPrivate=Mockito.mock(Location.class);
  when(mockLocationPrivate.getWorld()).thenReturn(mockWorld);
  when(mockLocationPrivate.getX()).thenReturn(10.0);
  when(mockLocationPrivate.getY()).thenReturn(20.0);
  when(mockLocationPrivate.getZ()).thenReturn(30.0);
  when(mockLocationPrivate.getPitch()).thenReturn(1.5f);
  when(mockLocationPrivate.getYaw()).thenReturn(1.75f);
  Location mockLocationUnlisted=Mockito.mock(Location.class);
  when(mockLocationUnlisted.getWorld()).thenReturn(mockWorld);
  when(mockLocationUnlisted.getX()).thenReturn(20.0);
  when(mockLocationUnlisted.getY()).thenReturn(30.0);
  when(mockLocationUnlisted.getZ()).thenReturn(40.0);
  when(mockLocationUnlisted.getPitch()).thenReturn(1.5f);
  when(mockLocationUnlisted.getYaw()).thenReturn(1.75f);
  Location mockLocationListed=Mockito.mock(Location.class);
  when(mockLocationListed.getWorld()).thenReturn(mockWorld);
  when(mockLocationListed.getX()).thenReturn(30.0);
  when(mockLocationListed.getY()).thenReturn(40.0);
  when(mockLocationListed.getZ()).thenReturn(50.0);
  when(mockLocationListed.getPitch()).thenReturn(1.5f);
  when(mockLocationListed.getYaw()).thenReturn(1.75f);
  UnitTestPersistenceProvider testPersistenceProvider=new UnitTestPersistenceProvider();
  WarpManager warpManager=new WarpManager(mockNiftyWarpPlugin);
  Warp privateWarp=warpManager.addWarp("String_Node_Str",mockPlayerOne,WarpType.PRIVATE,mockLocationPrivate,testPersistenceProvider);
  Warp unlistedWarp=warpManager.addWarp("String_Node_Str",mockPlayerOne,WarpType.UNLISTED,mockLocationUnlisted,testPersistenceProvider);
  Warp listedWarp=warpManager.addWarp("String_Node_Str",mockPlayerOne,WarpType.LISTED,mockLocationListed,testPersistenceProvider);
  List<Warp> testList1=testPersistenceProvider.getWarpsByName("String_Node_Str");
  List<Warp> testList2=testPersistenceProvider.getWarpsByName("String_Node_Str");
  List<Warp> testList3=testPersistenceProvider.getWarpsByName("String_Node_Str");
  assertEquals(testList1.get(0),privateWarp);
  assertEquals(testList2.get(0),unlistedWarp);
  assertEquals(testList3.get(0),listedWarp);
}