/**
* Tests that the register call back injects the possibly decorated instance.
*/
@Test
public void register() {
final TestParcel p = new TestParcel(new Point(0, 0), 0, 0, 1.0);
model.register(p);
assertSame(model, p.pdpModel.get());
final TestDepot d = new TestDepot(10);
model.register(d);
assertSame(model, d.pdpModel.get());
final TestVehicle v = new TestVehicle(new Point(0d, 0d), 1d, 30d);
model.register(v);
assertSame(model, v.pdpModel.get());
}