@Test
public void testGetResources() throws Exception {

  ClusterDefinition clusterDefinition = new ClusterDefinition(new TestStateProvider(), new TestClusterDefinitionProvider(), new TestHostInfoProvider());
  clusterDefinition.getRequestResources().add(new ResourceImpl(Resource.Type.Request));
  RequestProvider provider = new RequestProvider(clusterDefinition);
  Set<Resource> resources = provider.getResources(PropertyHelper.getReadRequest(), null);
  Assert.assertEquals(1, resources.size());
}