public void testAddMudObjectStringMudObject() {
InventoryHandler hand = new InventoryHandler();
MockControl ctrl = MockControl.createNiceControl(MudObject.class);
MudObject obj = (MudObject) ctrl.getMock();
obj.getName();
ctrl.setDefaultReturnValue("name");
obj.getShortNames();
ctrl.setDefaultReturnValue(new LinkedList());
ctrl.replay();
hand.addMudObject(obj);
assertTrue(hand.size() == 1);
hand.addMudObject(obj);
assertTrue(hand.size() == 1);
ctrl.verify();
MockControl ctrl2 = MockControl.createNiceControl(MudObject.class);
MudObject obj2 = (MudObject) ctrl2.getMock();
obj2.getName();
ctrl2.setDefaultReturnValue("name");
obj2.getShortNames();
ctrl2.setDefaultReturnValue(new LinkedList());
ctrl2.replay();
hand.addMudObject(obj2);
assertTrue(hand.size() == 2);