### Question:
ResistorColor { int colorCode(String color) { throw new UnsupportedOperationException("Delete this statement and write your own implementation."); }    }### Answer:
@Test public void testBlackColorCode() { String input = "black"; int expected = 0; assertEquals(expected, resistorColor.colorCode(input)); }
@Ignore("Remove to run test") @Test public void testWhiteColorCode() { String input = "white"; int expected = 9; assertEquals(expected, resistorColor.colorCode(input)); }
@Ignore("Remove to run test") @Test public void testOrangeColorCode() { String input = "orange"; int expected = 3; assertEquals(expected, resistorColor.colorCode(input)); }