### Question:
JcrMavenUrlProvider extends AbstractMavenUrlProvider { @Override public void configure( Properties properties ) { super.configure(properties); properties = super.getProperties(); String username = properties.getProperty(USERNAME); if (username != null) { String password = properties.getProperty(PASSWORD, ""); this.setCredentials(new SimpleCredentials(username, password.toCharArray())); } this.setWorkspaceName(properties.getProperty(WORKSPACE_NAME, this.getWorkspaceName())); this.setPathToTopOfRepository(properties.getProperty(REPOSITORY_PATH, this.getPathToTopOfRepository())); } JcrMavenUrlProvider(); @Override void configure( Properties properties ); Credentials getCredentials(); void setCredentials( Credentials credentials ); String getWorkspaceName(); void setWorkspaceName( String workspaceName ); String getPathToTopOfRepository(); void setPathToTopOfRepository( String pathToTopOfRepository ); Repository getRepository(); void setRepository( Repository repository ); URL getUrl( MavenId mavenId,
                       ArtifactType artifactType,
                       SignatureType signatureType,
                       boolean createIfRequired ); void setContent( MavenUrl mavenUrl,
                            InputStream content ); static final String USERNAME; static final String PASSWORD; static final String WORKSPACE_NAME; static final String REPOSITORY_PATH; static final String DEFAULT_PATH_TO_TOP_OF_MAVEN_REPOSITORY; static final String DEFAULT_CREATE_REPOSITORY_PATH; static final String CONTENT_NODE_NAME; static final String CONTENT_PROPERTY_NAME; }### Answer:
@Test public void shouldHaveNonNullPropertiesAfterConfigurationUsingNullProperties() { provider.configure(null); assertThat(provider.getProperties(), is(notNullValue())); }