Assert.assertEquals(storage.getUriTemplate(LocationType.DATA), "hdfs://localhost:41020/foo/bar");
}
@Test
public void testGetUriTemplate() throws Exception {
final Location dataLocation = new Location();
dataLocation.setPath("/data/foo/bar");
dataLocation.setType(LocationType.DATA);
final Location metaLocation = new Location();
metaLocation.setPath("/meta/foo/bar");
metaLocation.setType(LocationType.META);
final Location statsLocation = new Location();
statsLocation.setPath("/stats/foo/bar");
statsLocation.setType(LocationType.STATS);
final Location tmpLocation = new Location();
tmpLocation.setPath("/tmp/foo/bar");
tmpLocation.setType(LocationType.TMP);
List<Location> locations = new ArrayList<Location>();
locations.add(dataLocation);
locations.add(metaLocation);
locations.add(statsLocation);