PdxManager extends CacheConfigurationManager<Pdx> { @Override public List<Pdx> list(Pdx filterConfig, CacheConfig existing) { Pdx configuration = pdxConverter.fromXmlObject(existing.getPdx()); if (configuration == null) { return Collections.emptyList(); } return Collections.singletonList(configuration); } PdxManager(ConfigurationPersistenceService service); @Override void add(Pdx config, CacheConfig existing); @Override void update(Pdx config, CacheConfig existing); @Override void delete(Pdx config, CacheConfig existing); @Override List<Pdx> list(Pdx filterConfig, CacheConfig existing); @Override Pdx get(Pdx config, CacheConfig existing);  }
@Test public void emptyListWhenPdxNotExist() throws Exception { assertThat(manager.list(null, config)).isEmpty(); }