Program: 25539
Project: 25539
Buggy source:
public void testMeshOperations() throws Exception {
  for (int i=0; i < 10; ++i) {
    final long start=System.currentTimeMillis();
    final CoordinateTransformMesh mesh=new CoordinateTransformMesh(ctlMipmap,(int)(tileSpec.getWidth() / tileSpec.getMeshCellSize() + 0.5),ipMipmap.getWidth(),ipMipmap.getHeight());
    final long meshCreationStop=System.currentTimeMillis();
    final TransformMeshMappingWithMasks.ImageProcessorWithMasks source=new TransformMeshMappingWithMasks.ImageProcessorWithMasks(ipMipmap,maskSourceProcessor,null);
    final TransformMeshMappingWithMasks.ImageProcessorWithMasks target=new TransformMeshMappingWithMasks.ImageProcessorWithMasks(tp,maskTargetProcessor,null);
    final TransformMeshMappingWithMasks<TransformMesh> mapping=new TransformMeshMappingWithMasks<TransformMesh>(mesh);
    mapping.mapInterpolated(source,target,1);
    final long mapInterpolatedStop=System.currentTimeMillis();
    LOG.info("String_Node_Str",meshCreationStop - start,mapInterpolatedStop - meshCreationStop);
    final ImageProcessor targetImageProcessor=target.ip;
    final int expectedPixelCount=5989000;
    Assert.assertEquals("String_Node_Str",expectedPixelCount,targetImageProcessor.getPixelCount());
    final int[] expectedPixelValues={0,0,0,0,0,0,0,0,0,0,0,0,0,135,107,118,126,171,103,189,129,178,130,0,0,100,151,122,122,105,169,155,179,126,131,0,0,149,100,107,185,130,163,138,189,187,194,0,0,179,153,168,171,181,128,119,132,195,113,0,0,129,150,118,179,93,185,135,78,106,185,0,0,136,164,136,184,167,184,150,182,143,172,0,0,120,134,140,67,92,76,112,178,96,185,0,0,101,81,171,138,117,147,145,162,114,97,0,0,131,157,173,170,81,157,148,177,173,160,0,0,142,101,93,90,131,139,127,173,185,150,0,0,166,161,105,165,109,165,155,92,152,154,0,0,169,89,87,163,162,142,109,177,155,104,0,0,0,0,0,0,0,0,0,0,0,0,0};
    int index=0;
    for (int x=0; x < targetImageProcessor.getWidth(); x+=200) {
      for (int y=0; y < targetImageProcessor.getHeight(); y+=200) {
        Assert.assertEquals("String_Node_Str" + x + "String_Node_Str"+ y+ "String_Node_Str",expectedPixelValues[index],targetImageProcessor.getPixel(x,y));
        index++;
      }
    }
  }
}

Fixed version (ground truth):
@Test public void testMeshOperations() throws Exception {
  for (int i=0; i < 10; ++i) {
    final long start=System.currentTimeMillis();
    final CoordinateTransformMesh mesh=new CoordinateTransformMesh(ctlMipmap,(int)(tileSpec.getWidth() / tileSpec.getMeshCellSize() + 0.5),ipMipmap.getWidth(),ipMipmap.getHeight());
    final long meshCreationStop=System.currentTimeMillis();
    final TransformMeshMappingWithMasks.ImageProcessorWithMasks source=new TransformMeshMappingWithMasks.ImageProcessorWithMasks(ipMipmap,maskSourceProcessor,null);
    final TransformMeshMappingWithMasks.ImageProcessorWithMasks target=new TransformMeshMappingWithMasks.ImageProcessorWithMasks(tp,maskTargetProcessor,null);
    final TransformMeshMappingWithMasks<TransformMesh> mapping=new TransformMeshMappingWithMasks<TransformMesh>(mesh);
    mapping.mapInterpolated(source,target,1);
    final long mapInterpolatedStop=System.currentTimeMillis();
    LOG.info("String_Node_Str",meshCreationStop - start,mapInterpolatedStop - meshCreationStop);
    final ImageProcessor targetImageProcessor=target.ip;
    final int expectedPixelCount=5989000;
    Assert.assertEquals("String_Node_Str",expectedPixelCount,targetImageProcessor.getPixelCount());
    final int[] expectedPixelValues={0,0,0,0,0,0,0,0,0,0,0,0,0,135,107,118,126,171,103,189,129,178,130,0,0,100,151,122,122,105,169,155,179,126,131,0,0,149,100,107,185,130,163,138,189,187,194,0,0,179,153,168,171,181,128,119,132,195,113,0,0,129,150,118,179,93,185,135,78,106,185,0,0,136,164,136,184,167,184,150,182,143,172,0,0,120,134,140,67,92,76,112,178,96,185,0,0,101,81,171,138,117,147,145,162,114,97,0,0,131,157,173,170,81,157,148,177,173,160,0,0,142,101,93,90,131,139,127,173,185,150,0,0,166,161,105,165,109,165,155,92,152,154,0,0,169,89,87,163,162,142,109,177,155,104,0,0,0,0,0,0,0,0,0,0,0,0,0};
    int index=0;
    for (int x=0; x < targetImageProcessor.getWidth(); x+=200) {
      for (int y=0; y < targetImageProcessor.getHeight(); y+=200) {
        Assert.assertEquals("String_Node_Str" + x + "String_Node_Str"+ y+ "String_Node_Str",expectedPixelValues[index],targetImageProcessor.getPixel(x,y));
        index++;
      }
    }
  }
}