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