@Test
public void testWrongName() {

    DefaultModuleDefinition def = createDef("wrongname");
    try {
        def.init();
        fail();
    } catch (IOException e) {
        assertTrue(e.getMessage().contains("do not appear to be the same resource"));
    }
}