assertEquals(car3.getDriver(), driver);
}
@Test
public void singletonPolicyWithModel() throws ModelFactoryException {
Driver driver = modelFactory.createModel(Driver.class);
modelFactory.addPolicy(new MappedSingletonPolicy(driver));
Car car1 = modelFactory.createModel(Car.class);
Car car2 = modelFactory.createModel(Car.class);
Car car3 = modelFactory.createModel(Car.class);