### Question:
DatastreamUtil { public static String getOriginalFileUrl(BriefObjectMetadata metadata) { return getDatastreamUrl(metadata, ORIGINAL_FILE.getId()); } private  DatastreamUtil(); static void setDatastreamEndpoint(String uri); static String getDatastreamUrl(BriefObjectMetadata metadata, String datastreamName); static String getOriginalFileUrl(BriefObjectMetadata metadata); static Datastream getPreferredDatastream(BriefObjectMetadata metadata, String datastreamName); static String getThumbnailUrl(BriefObjectMetadata metadata, String size);  }### Answer:
@Test public void testGetOriginalFileUrl() { PID pid = makePid(); BriefObjectMetadataBean mdObj = new BriefObjectMetadataBean(); mdObj.setId(pid.getId()); mdObj.setDatastream(asList(ORIGINAL_DS)); String url = DatastreamUtil.getOriginalFileUrl(mdObj); assertEquals("content/" + pid.getId(), url); }
@Test public void testGetOriginalFileIndexableUrl() { PID pid = makePid(); BriefObjectMetadataBean mdObj = new BriefObjectMetadataBean(); mdObj.setId(pid.getId()); mdObj.setDatastream(asList(ORIGINAL_INDEXABLE)); String url = DatastreamUtil.getOriginalFileUrl(mdObj); assertEquals("indexablecontent/" + pid.getId(), url); }