NoOpProvider extends BaseResourceProvider { @Override public Set<String> checkPropertyIds(Set<String> propertyIds) { return Collections.emptySet(); } NoOpProvider(Resource.Type type, ClusterDefinition clusterDefinition); @Override void updateProperties(Resource resource, Request request, Predicate predicate); @Override int updateProperties(Resource resource, Map<String, Object> properties); @Override Map<Resource.Type, String> getKeyPropertyIds(); @Override Set<String> checkPropertyIds(Set<String> propertyIds);  }
@Test public void testCheckPropertyIds() throws Exception { ClusterDefinition clusterDefinition = new ClusterDefinition(new TestStateProvider(), new TestClusterDefinitionProvider(), new TestHostInfoProvider()); NoOpProvider provider = new NoOpProvider(Resource.Type.Workflow, clusterDefinition); Assert.assertTrue(provider.checkPropertyIds(Collections.singleton("id")).isEmpty()); }