### Question:
CausedFocusEventWrapper { public boolean isTraversal() { return cause != null && "TRAVERSAL".equals(cause.name()); } CausedFocusEventWrapper(FocusEvent e); @VisibleForTesting  CausedFocusEventWrapper(Enum<?> cause); boolean isTraversal(); boolean isTraversalForward(); boolean isTraversalBackward(); boolean isTraversalUp(); boolean isTraversalDown(); static boolean isFocusEventWithCause(AWTEvent e); @Nullable static CausedFocusEventWrapper newInstanceOrNull(AWTEvent e);  }### Answer:
@Test public void testIsTraversal() { CausedFocusEventWrapper inst = new CausedFocusEventWrapper(getEnumValue("TRAVERSAL")); Map<String, Boolean> res = invokeAll(inst); assertSingleTrueValueAtKey("isTraversal", res); }