@Test
public void testReduce() {

  float[][] given = {{0, 0, 5.1f, 10}, {5.1f, 0, 5.3f, 10}, {5.3f, 0, 5.9f, 10}, {5.9f, 0, 6.1f, 10}};
  ColorState[] givenValues = {ColorState.BLACK, ColorState.RED, ColorState.YELLOW, ColorState.BLACK};
  float[][] expected = {{0, 0, 5.1f, 10}, {5.1f, 0, 5.9f, 10}, {5.9f, 0, 6.1f, 10}};
  ColorState[] expectedValues = {ColorState.BLACK, ColorState.YELLOW, ColorState.BLACK};
  check(given, givenValues, expected, expectedValues);
}