### Question:
BWPalette extends ColorPalette { @Override public int getColorInt(float intensity) { return (intensity > 0.5) ? 0xffffffff: 0xff000000; }  @Override int getColorInt(float intensity); @Override int[] getColorsInt();  }### Answer:
@Test public void getColorInt() throws Exception { BWPalette bwp = new BWPalette(); assertEquals(0xff000000, bwp.getColorInt(0.1f)); assertEquals(0xffffffff, bwp.getColorInt(0.9f)); }