public JenkinsRule j = new JenkinsRule();
@Before
public void setupFongo() throws Exception {
Morphia morphia = new Morphia();
Mapper mapper = morphia.getMapper();
mapper.getConverters().addConverter(new CopyOnWriteListConverter());
mapper.getConverters().addConverter(new DescribableListConverter());
mapper.getConverters().addConverter(new ParametersDefinitionPropertyCoverter());
mapper.getConverters().addConverter(new CombinationConverter());
mapper.getConverters().addConverter(new AxisListConverter());
mapper.getConverters().addConverter(new ResultConverter());
mapper.getOptions().setActLikeSerializer(true);
mapper.getOptions().objectFactory = new CustomMorphiaObjectFactory(MongoRepository.class.getClassLoader());
Datastore datastore = morphia.createDatastore(new Fongo(SetupConfig.get().getDbName()).getMongo(), SetupConfig.get().getDbName());
Whitebox.setInternalState(MongoRepository.class, "datastore", datastore);
}