### Question:
WMSLayerProvider { public List<WMSLayer> getLayers() { DataModelCategory category = new DataModelCategory(null, WMSLayer.class.getName(), null); PropertyDescriptor<WMSLayer> property = new PropertyDescriptor<>("value", WMSLayer.class); SimpleQuery<WMSLayer> query = new SimpleQuery<>(category, property); myDataRegistry.performLocalQuery(query); return query.getResults(); } WMSLayerProvider(DataRegistry registry); List<WMSLayer> getLayers();  }### Answer:
@Test public void testGetLayers() { DataRegistry dataRegistry = createDataRegistry(); EasyMock.replay(dataRegistry); WMSLayerProvider provider = new WMSLayerProvider(dataRegistry); List<WMSLayer> layers = provider.getLayers(); assertEquals(2, layers.size()); EasyMock.verify(dataRegistry); }