VersionedPrivateResource implements VersionedResourceLocation<PrivateResource, V>, PrivateResource { @Override public VersionedPrivateResource<V> withAuthority(String username, String password) { return new VersionedPrivateResource<>(resource.withAuthority(username, password), version); }  @Override Uri encryptedPath(); @Override Uri decryptedPath(); @Override Uri location(); @Override VersionedPrivateResource<V> resolveFrom(ResourceLocation absolute); @Override VersionedPrivateResource<V> resolve(Uri encryptedPath, Uri decryptedPath); @Override VersionedPrivateResource<V> withAuthority(String username, String password);  }
@Test void withAuthority() { assertThat( absoluteTested.withAuthority("user", "secret").location().toASCIIString() ).isEqualTo("file: }