@Test public void removeAll() { List<VmNic> interfaces = Arrays.asList(createNewInterface(), createNewInterface()); when(vmNicDao.getAllForVm(any(Guid.class))).thenReturn(interfaces); vmInterfaceManager.removeAll(Guid.newGuid()); for (VmNic iface : interfaces) { verifyRemoveAllDelegatedCorrectly(iface); } }