GcsResourceId implements ResourceId { @Override public GcsResourceId getCurrentDirectory() { if (isDirectory()) { return this; } else { GcsPath parent = gcsPath.getParent(); checkState( parent != null, String.format("Failed to get the current directory for path: [%s].", gcsPath)); return fromGcsPath(parent); } } private  GcsResourceId(GcsPath gcsPath); @Override GcsResourceId resolve(String other, ResolveOptions resolveOptions); @Override GcsResourceId getCurrentDirectory(); @Override boolean isDirectory(); @Override String getScheme(); @Override @Nullable String getFilename(); @Override String toString(); @Override boolean equals(@Nullable Object obj); @Override int hashCode();  }
@Test public void testGetCurrentDirectory() { assertEquals( toResourceIdentifier("gs: toResourceIdentifier("gs: assertEquals( toResourceIdentifier("gs: toResourceIdentifier("gs: assertEquals( toResourceIdentifier("gs: toResourceIdentifier("gs: }