@Test
public void removeLayerViaLayerListByPosition() throws Exception {

    MockLayer layer1 = new MockLayer(WORLD);
    mapContent.layers().add(layer1);
    
    MockLayer layer2 = new MockLayer(WORLD);
    mapContent.layers().add(layer2);
    
    // remove layer at position 0 (layer1)
    mapContent.layers().remove(0);
    
    assertEquals(1, mapContent.layers().size());
    assertTrue(mapContent.layers().get(0) == layer2);
    assertTrue(layer1.isDisposed());
    assertFalse(layer2.isDisposed());
}