PluginContainerTest.getCurrentMockContext().checking(new Expectations() {
{
ServerServices ss = PluginContainerTest.getCurrentPluginContainerConfiguration().getServerServices();
allowing(ss.getDiscoveryServerService()).mergeInventoryReport(with(any(InventoryReport.class)));
will(fakeInventory.mergeInventoryReport(InventoryStatus.COMMITTED));
allowing(ss.getDiscoveryServerService()).getResources(with(any(Set.class)), with(any(boolean.class)));
will(fakeInventory.getResources());
allowing(ss.getDiscoveryServerService()).mergeAvailabilityReport(with(any(AvailabilityReport.class)));