public void test() throws ApiSenderException {
Assert.assertEquals(1, vconfig.eips.size());
EipTO to = vconfig.eips.get(0);
EipInventory eip = deployer.eips.get("eip");
VipVO vipvo = dbf.findByUuid(eip.getVipUuid(), VipVO.class);
<BUG>Assert.assertEquals(vipvo.getIp(), to.getVipIp());
VmInstanceInventory vm = deployer.vms.get("TestVm");</BUG>
api.destroyVmInstance(vm.getUuid());
<BUG>Assert.assertEquals(1, vconfig.removedEips.size());
to = vconfig.removedEips.get(0);
Assert.assertEquals(vipvo.getIp(), to.getVipIp());
long count = dbf.count(VirtualRouterEipRefVO.class);
Assert.assertEquals(0, count);</BUG>
EipVO evo = dbf.findByUuid(eip.getUuid(), EipVO.class);

public void test() throws ApiSenderException {
Assert.assertEquals(1, vconfig.eips.size());
EipTO to = vconfig.eips.get(0);
EipInventory eip = deployer.eips.get("eip");
VipVO vipvo = dbf.findByUuid(eip.getVipUuid(), VipVO.class);
Assert.assertEquals(vipvo.getIp(), to.getVipIp());
VirtualRouterVmVO vr = Q.New(VirtualRouterVmVO.class).find();
api.stopVmInstance(vr.getUuid());
VmInstanceInventory vm = deployer.vms.get("TestVm");
api.destroyVmInstance(vm.getUuid());
EipVO evo = dbf.findByUuid(eip.getUuid(), EipVO.class);
