@Test
public void testCreateMosaicImage() throws Exception {

    final RenderedImage image1 = createRenderedImage(1);
    final RenderedImage image2 = createRenderedImage(2);
    final RenderedImage image3 = createRenderedImage(3);
    final RenderedImage image4 = createRenderedImage(4);
    final RenderedImage image5 = createRenderedImage(5);
    final RenderedImage mosaicImage = CameraImageMosaic.create(image1, image2, image3, image4, image5);
    assertNotNull(mosaicImage);
    assertEquals(50, mosaicImage.getWidth());
    assertEquals(100, mosaicImage.getHeight());
    final Raster data = mosaicImage.getData();
    for (int x = 0; x < mosaicImage.getWidth(); x++) {
        assertEquals(x / 10 + 1, data.getSample(x, 0, 0));
    }
}