### Question:
Code { public boolean isShiftDown() { return isShiftDown; } @SuppressWarnings("unchecked")  Code(KeyEvent event); int getCharCode(); int getKeyCode(); boolean isCtrlDown(); boolean isAltDown(); boolean isShiftDown(); boolean isFunctionKey(); boolean isControlKey();  }### Answer:
@Test public void testIsShiftDown(){ assertFalse(keyDownCodeAllFalse.isShiftDown()); assertTrue(keyDownCodeAllTrue.isShiftDown()); }