### Question:
SeleniumResourceProvider implements ResourceProvider { @Override public boolean canProvide(Class<?> type) { return type.getName().equals(getReturnType()); }  @Override boolean canProvide(Class<?> type); @SuppressWarnings("unchecked") static void registerAllProviders(ExtensionBuilder builder);  }### Answer:
@Test public void testDirectProviderCanProvideMethod() { WebDriverProvider provider = new WebDriverProvider(); assertTrue(provider.canProvide(WebDriver.class)); assertFalse(provider.canProvide(JavascriptExecutor.class)); }
@Test public void testIndirectProviderCanProvideMethod() { KeyboardProvider provider = new KeyboardProvider(); assertTrue(provider.canProvide(Keyboard.class)); assertFalse(provider.canProvide(Mouse.class)); }