### Question:
Hints implements Serializable { public static Hints readWrite() { Hints hints = new Hints(); hints.set(Hints.OBJECTS_READ_ONLY, Boolean.FALSE); hints.set(Hints.REMOTES_READ_ONLY, Boolean.FALSE); return hints; } Hints();  Hints(@NonNull Hints orig); void set(String key, Serializable value); Optional<Serializable> get(final String key); boolean getBoolean(final String key); @Override String toString(); @Override boolean equals(Object o); Map<String, Serializable> getAll(); static Hints readOnly(); Hints readOnly(boolean ro); static boolean isRepoReadOnly(Hints hints); static Hints readWrite(); static Hints repository(@NonNull URI repoURI); Hints uri(URI repoURI); Hints platform(Platform platform); static final String OBJECTS_READ_ONLY; static final String REMOTES_READ_ONLY; static final String REPOSITORY_URL; static final String REPOSITORY_NAME; static final String PLATFORM; }### Answer:
@Test public void testReadWrite() { Hints hints = Hints.readWrite(); assertFalse(hints.getBoolean(Hints.OBJECTS_READ_ONLY)); assertFalse(hints.getBoolean(Hints.REMOTES_READ_ONLY)); }