Configuration conf = new Configuration();
conf.set("test", "OK");
RuntimeResourceManager manager = new RuntimeResourceManager(conf) {
@Override
protected List<RuntimeResource> load() throws IOException {
RuntimeResource adapter = new Adapter() {
@Override
public void cleanup(ResourceConfiguration configuration) {
passed.addAndGet(1);
assertThat(configuration.get("test", null), is("OK"));
}