### Question:
ViewEventHandlerManager { public boolean supports(final ViewEventType type) { if (null != supportedTypes) { for (final ViewEventType type1 : supportedTypes) { if (type.equals(type1)) { return true; } } } return false; } ViewEventHandlerManager(final Node<?> node,
                                   final ViewEventType... supportedTypes);  ViewEventHandlerManager(final Node<?> node,
                                   final Shape<?> shape,
                                   final ViewEventType... supportedTypes);   ViewEventHandlerManager(final Node<?> node,
                            final Shape<?> shape,
                            final GWTTimer timer,
                            final ViewEventType... supportedTypes); void enable(); void disable(); boolean supports(final ViewEventType type); @SuppressWarnings("unchecked") void addHandler(final ViewEventType type,
                           final ViewHandler<? extends ViewEvent> eventHandler); @SuppressWarnings("unchecked") void addHandlersRegistration(final ViewEventType type,
                                        final HandlerRegistration... registrations); @SuppressWarnings("unchecked") void removeHandler(final ViewHandler<? extends ViewEvent> eventHandler); @SuppressWarnings("unchecked") void destroy(); void skipClickHandler(); void restoreClickHandler();  }### Answer:
@Test public void testSupportedEventTypes() { this.tested = new ViewEventHandlerManager(node, shape, ViewEventType.MOUSE_CLICK, ViewEventType.MOUSE_DBL_CLICK, ViewEventType.TEXT_DBL_CLICK); assertTrue(tested.supports(ViewEventType.MOUSE_CLICK)); assertTrue(tested.supports(ViewEventType.MOUSE_DBL_CLICK)); assertTrue(tested.supports(ViewEventType.TEXT_DBL_CLICK)); assertFalse(tested.supports(ViewEventType.TEXT_CLICK)); assertFalse(tested.supports(ViewEventType.TEXT_ENTER)); assertFalse(tested.supports(ViewEventType.TEXT_EXIT)); assertFalse(tested.supports(ViewEventType.MOUSE_ENTER)); assertFalse(tested.supports(ViewEventType.DRAG)); assertFalse(tested.supports(ViewEventType.MOUSE_EXIT)); assertFalse(tested.supports(ViewEventType.MOUSE_MOVE)); assertFalse(tested.supports(ViewEventType.GESTURE)); assertFalse(tested.supports(ViewEventType.RESIZE)); assertFalse(tested.supports(ViewEventType.TOUCH)); }