### Question:
XMLConfig implements Config { @Override public IElementDef getElementDef() { if (elementDef == null) { throw new IllegalStateException("No configuration source provided"); } return elementDef; } @Inject  XMLConfig(@Assisted final ConfigSource configSource); @Override ConfigSource getConfigSource(); @Override IElementDef getElementDef(); @Override @Deprecated String getNamespaceURI(); @Override void reload();  }### Answer:
@Test(expectedExceptions=IllegalStateException.class) public void testGetElementDefWithoutLoadedConfiguration() { config.getElementDef(); }