@Test public void passes_UserInventory_to_created_object() { final UserInventory inventory = mockery.mock(UserInventory.class); Location l = (Location) new LocationFactory(inventory, null).create(); assertEquals(inventory, l.inventory()); }