}
protected void assertImages(Transform transform, Image expected, Image transImg) {
ImageLifecycleEvent event = TestLifecycles.createImageLifecycleEvent(getClass(), transform, expected, transImg);
TestLifecycles.before(event);
Boolean result = event.result();
if (result == null) {
assertArrayEquals(expected.getImageData(), transImg.getImageData());
} else {
Assert.assertTrue("Images are not equal.", result);