CausedFocusEventWrapper { public boolean isTraversalForward(){ return cause != null && "TRAVERSAL_FORWARD".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);  }
@Test public void testIsTraversalForward() { CausedFocusEventWrapper inst = new CausedFocusEventWrapper(getEnumValue("TRAVERSAL_FORWARD")); Map<String, Boolean> res = invokeAll(inst); assertSingleTrueValueAtKey("isTraversalForward", res); }