m.ensureRegistered(synch);
}
@Test
public void ensureRegisteredFail() {
TaskHandle handle = mock(TaskHandle.class);
ResourceManager m = new ResourceManager(handle);
try {
m.ensureRegistered(synch);
fail("should throw an excaption");
} catch (IllegalStateException e) {