### Question:
AbstractDaoAdapterRegister extends AbstractDaoRegister<D> { public D getDao(String name) { if(name == null) { return getDefaultDao(); } D dao = daoMap.get(name); if(dao == null) { throw new IllegalStateException("No DAO under the name '"+ name +"' was found in this '" + this.getClass().getName() + "' DaoRegister."); } return dao; } AbstractDaoAdapterRegister(A defaultAdaptable);  AbstractDaoAdapterRegister(A defaultAdaptable, Map<String, ? extends A> adaptableMap);  AbstractDaoAdapterRegister(Map<String, ? extends A> adaptableMap); D getDefaultDao(); D getDao(String name);  }### Answer:
@Test(expectedExceptions = IllegalStateException.class) public void test_unknown_mapped_adaptable() { Mock mock = new Mock(new HashMap<String, Object>()); mock.getDao(""); }