public static BufferedImage grayscaleImage(final BufferedImage image)
	{
		final Image grayImage = GrayFilter.createDisabledImage(image);
		return ImageUtil.bufferedImageFromImage(grayImage);
	}
@Test
	public void grayscaleImage()
	{
		final BufferedImage[] grayscaleColors = new BufferedImage[] {
			oneByOne(WHITE),
			oneByOne(GRAY),
			oneByOne(BLACK),
			oneByOne(BLACK_HALF_TRANSPARENT),
			oneByOne(BLACK_TRANSPARENT),
		};
		final BufferedImage[] nonGrayscaleColors = new BufferedImage[] {
			oneByOne(RED),
			oneByOne(GREEN),
			oneByOne(BLUE),
		};

		for (BufferedImage image : grayscaleColors)
		{
			assertTrue(isGrayscale(image));
		}
		for (BufferedImage image : nonGrayscaleColors)
		{
			assertFalse(isGrayscale(image));
		}
		for (BufferedImage image : ArrayUtils.addAll(grayscaleColors, nonGrayscaleColors))
		{
			assertTrue(isGrayscale(ImageUtil.grayscaleImage(image)));
		}
	}