OAuthAuthenticator implements WebappAuthenticator { public String getProperty(String name) { if (this.properties == null) { return null; } return this.properties.getProperty(name); }  void init(); boolean canHandle(org.apache.catalina.connector.Request request); AuthenticationInfo authenticate(org.apache.catalina.connector.Request request, Response response); String getName(); String getProperty(String name); Properties getProperties(); void setProperties(Properties properties);  }
@Test(description = "This method is used to test getProperty method of the OAuthAuthenticator", dependsOnMethods = {"testInit"}) public void testGetProperty() { Assert.assertEquals(oAuthAuthenticator.getProperty("Username"), "admin", "Username property of " + "OauthAuthenticator is not matching with the assigned one."); Assert.assertEquals(oAuthAuthenticator.getProperties().size(), properties.size(), "Property list assigned " + "does not match with retrieved list"); }