public void testGetResources() throws Exception{
Resource.Type type = Resource.Type.Repository;
AmbariManagementController managementController = EasyMock.createMock(AmbariManagementController.class);
RepositoryResponse rr = new RepositoryResponse(VAL_BASE_URL, VAL_OS,
VAL_REPO_ID, VAL_REPO_NAME, null, null, null);
rr.setStackName(VAL_STACK_NAME);
rr.setStackVersion(VAL_STACK_VERSION);
Set<RepositoryResponse> allResponse = new HashSet<RepositoryResponse>();
allResponse.add(rr);
// set expectations
expect(managementController.getRepositories(EasyMock.<Set<RepositoryRequest>>anyObject())).andReturn(allResponse).times(1);