// note that we can provide an actual implementation instance here because there will be only one
// adapter, normally you'd want to specify a Class here
m.add(m.createResourceAdapterService("(&(path=/path/to/*.txt)(host=localhost))", false, null, "changed")
.setImplementation(new ResourceAdapter(e)));
// wait until the single resource is available
e.waitForStep(3, 5000);
// trigger a 'change' in our resource
provider.change();
// wait until the changed callback is invoked
e.waitForStep(4, 5000);
m.clear();