@Test(expected = UnsupportedDriverException.class) public void should_throw_exception_if_invalid_driver_used() { WebDriverFacade facade = new WebDriverFacade(InvalidWebDriverClass.class, new WebDriverFactory()); facade.getProxiedDriver(); }