### Question:
ProtoIndex { public void updateProtoDependencies(final Path proto, final Set<Path> paths) { protoDependencies.replaceValues(proto, paths); } private  ProtoIndex(final Index index); static ProtoIndex empty(); static ProtoIndex parse(final byte[] bytes); void updateProtoLocation(final String src, final String dest); void updatePackageVersion(final String pkg, final SchemaVersion version); void updateProtoDependencies(final Path proto, final Set<Path> paths); ImmutableSetMultimap<Path, Path> getProtoDependencies(); boolean removeProtoLocation(final String pkg); Map<String, String> getProtoLocations(); Map<String, SchemaVersion> getPackageVersions(); String toProtoString(); @Override String toString(); byte[] toByteArray();  }### Answer:
@Test public void updateProtoDependencies() { final Path path1 = Paths.get("/pkg1/proto1.proto"); final Path path2 = Paths.get("/pkg2/proto2.proto"); final Path path3 = Paths.get("/pkg3/proto3.proto"); final ProtoIndex protoIndex = ProtoIndex.empty(); protoIndex.updateProtoDependencies(path1, ImmutableSet.of(path1, path2)); protoIndex.updateProtoDependencies(path2, ImmutableSet.of(path3)); final ProtoIndex after = ProtoIndex.parse(protoIndex.toByteArray()); assertThat(after.getProtoDependencies(), equalTo(ImmutableSetMultimap.of( path1, path1, path1, path2, path2, path3 ))); }