### Question:
MongoSerializationDao extends MongoDao<Serialization, String> implements SerializationDao { @Override public Serialization findByTypeClass(String typeClass) { return query().field("typeClass").equal(typeClass).get(); } @Inject  MongoSerializationDao(Datastore datastore); @Override List<Serialization> findAll(); @Override List<Serialization> findAllWithFramework(String framework); @Override Serialization findByTypeClass(String typeClass);  }### Answer:
@Test public void findSerializationByTypeClass() { Serialization validSerialization = serializationDao.findByTypeClass("streamflow.test.First"); assertNotNull("The returned serialization should not be null with valid query values", validSerialization); Serialization invalidSerialization = serializationDao.findByTypeClass("streamflow.test.Invalid"); assertNull("The returned serialization should be null with invalid query values", invalidSerialization); }