@Test
public void getHintsOnCluster() throws Exception {

    String expectedFsUrl = "hdfs://localhost:8020";
    new Expectations() {{
       hdfsMetadataService.getDefaultFsUrl();
       result = expectedFsUrl;
    }};
    Cluster cluster = new Cluster();
    cluster.setId(1L);
    cluster.setName("cluster1");
    Map<String, Object> hints = provider.getHintsOnCluster(cluster, null, null);
    Assert.assertEquals(1, hints.size());
    Assert.assertEquals(expectedFsUrl, hints.get(TEST_FIELD_NAME_FS_URL));
}