@Test
public void testOfferHandling() {

	new Context() {{
		new Within(duration("10 seconds")) {
			@Override
			protected void run() {
				initialize();
				register(Collections.<ResourceID>emptyList());
				// Verify that the RM forwards offers to the launch coordinator.
				resourceManager.tell(new ResourceOffers(Collections.<Protos.Offer>emptyList()));
				resourceManagerInstance.launchCoordinator.expectMsgClass(ResourceOffers.class);
				resourceManager.tell(new OfferRescinded(offer1));
				resourceManagerInstance.launchCoordinator.expectMsgClass(OfferRescinded.class);
			}
		};
	}};
}