ProxyRepositoryFactory implements RepositoryFactory { @Override public RepositoryImplConfig getConfig() { return new ProxyRepositoryConfig(); }  @Override String getRepositoryType(); @Override RepositoryImplConfig getConfig(); @Override Repository getRepository(RepositoryImplConfig config); static final String REPOSITORY_TYPE; }
@Test(expected = RepositoryConfigException.class) public final void testGetConfig() throws RepositoryConfigException { RepositoryImplConfig factoryConfig = factory.getConfig(); assertThat(factoryConfig).isInstanceOf(ProxyRepositoryConfig.class); factoryConfig.validate(); }