@Test public void listPathEndsInSlash() throws Exception { thrown.expect(IllegalArgumentException.class); thrown.expectMessage("path must end with '/'; iam/security-credentials provided"); InstanceMetadataHook.list("iam/security-credentials"); }
public static List<String> list(String path) { return list(DEFAULT_URI, path); }
InstanceMetadataHook { public static List<String> list(String path) { return list(DEFAULT_URI, path); } }
InstanceMetadataHook { public static List<String> list(String path) { return list(DEFAULT_URI, path); }  }
InstanceMetadataHook { public static List<String> list(String path) { return list(DEFAULT_URI, path); }  static List<String> list(String path); static List<String> list(URI metadataService, String path); static String get(String path); static String get(URI metadataService, String path); }
InstanceMetadataHook { public static List<String> list(String path) { return list(DEFAULT_URI, path); }  static List<String> list(String path); static List<String> list(URI metadataService, String path); static String get(String path); static String get(URI metadataService, String path); static final URI DEFAULT_URI; }