### Question:
DefaultEngine implements Engine { @Override public Quality createQuality(QualityKey key) { FindFactory findFactory = new FindFactory(); key.withTypeDo(findFactory); return findFactory.create(key); }  @Override void setFactory(Type type, QualityFactory factory); @Override Persona createCharacter(); @Override Quality createQuality(QualityKey key);  }### Answer:
@Test(expected = UnknownQualityTypeException.class) public void throwsUnknownQualityType() throws Exception { Type type = new Type("unknownType"); engine.createQuality(new QualityKey(type, name)); }
@Test(expected = RuntimeException.class) public void throwsUnknownQualityType() throws Exception { Type type = new Type("unknownType"); engine.createQuality(new QualityKey(type, name)); }