assertTrue(listener.containsInstanceOf(LayerEventFixture.class));
}
@Test
public void shouldFireDisposeCommandOnDisposal() throws Exception {
AnyCommandHandlerFixture commandHandler = new AnyCommandHandlerFixture();
underlyingLayerFixture.registerCommandHandler(commandHandler);
natTable.dispose();
assertEquals(1, commandHandler.getNumberOfCommandsHandled());
assertTrue(commandHandler.getCommadHandled() instanceof DisposeResourcesCommand);
}