### Question:
QuantizedMeshEnvoy extends AbstractEnvoy implements DataRegistryDataProvider { @Override public boolean providesDataFor(DataModelCategory category) { boolean isServer = category.getSource() == null || myServerUrl.equals(category.getSource()); return isServer && QuantizedMesh.class.getName().equals(category.getFamily()) && !StringUtils.isBlank(category.getCategory()); } QuantizedMeshEnvoy(Toolbox toolbox, String serverUrl); @Override Collection<? extends Satisfaction> getSatisfaction(DataModelCategory dataModelCategory,
            Collection<? extends IntervalPropertyValueSet> intervalSets); @Override String getThreadPoolName(); @Override void open(); @Override boolean providesDataFor(DataModelCategory category); @Override void query(DataModelCategory category, Collection<? extends Satisfaction> satisfactions,
            List<? extends PropertyMatcher<?>> parameters, List<? extends OrderSpecifier> orderSpecifiers, int limit,
            Collection<? extends PropertyDescriptor<?>> propertyDescriptors, CacheDepositReceiver queryReceiver);  }### Answer:
@Test public void testProvidesDataFor() { EasyMockSupport support = new EasyMockSupport(); Toolbox toolbox = support.createMock(Toolbox.class); support.replayAll(); DataModelCategory provides = new DataModelCategory(null, QuantizedMesh.class.getName(), ourTestTileSet); DataModelCategory providesToo = new DataModelCategory(ourTestServer, QuantizedMesh.class.getName(), ourTestTileSet); DataModelCategory noProvidy = new DataModelCategory(null, QuantizedMesh.class.getName(), null); DataModelCategory noProvidyToo = new DataModelCategory("http: ourTestTileSet); DataModelCategory noProvidyAsWell = new DataModelCategory(null, null, null); QuantizedMeshEnvoy envoy = new QuantizedMeshEnvoy(toolbox, ourTestServer); assertTrue(envoy.providesDataFor(provides)); assertTrue(envoy.providesDataFor(providesToo)); assertFalse(envoy.providesDataFor(noProvidy)); assertFalse(envoy.providesDataFor(noProvidyToo)); assertFalse(envoy.providesDataFor(noProvidyAsWell)); support.verifyAll(); }