private static void assertWcsAccess(AccessBuilder access) {
   assertEquals("dir/file2.nc", access.getUrlPath());
   assertEquals("wcs", access.getServiceBuilder().getName());
   assertEquals(ServiceType.WCS, access.getServiceBuilder().getType());
   assertEquals("/thredds/wcs/", access.getServiceBuilder().getBaseUri().toString());
 }
 private static void assertOdapAccessToFile2(AccessBuilder access) {
   assertEquals("dir/file2.nc", access.getUrlPath());
   assertEquals("odap", access.getServiceBuilder().getName());
   assertEquals(ServiceType.OPENDAP, access.getServiceBuilder().getType());
   assertEquals("/thredds/dodsC/", access.getServiceBuilder().getBaseUri().toString());
 }