@Test
public void testBuildRMUrl() {

  Configuration yarnConf = mock(Configuration.class);
  when(yarnConf.get(YarnConfiguration.RM_WEBAPP_ADDRESS)).thenReturn("testrmaddress");
  String expected = "http://testrmaddress/cluster/app/1";
  assertEquals(Utils.buildRMUrl(yarnConf, "1"), expected);
}