### Question:
ImageToJsonTranslator { @VisibleForTesting @Nullable static Map<String, Map<?, ?>> portSetToMap(@Nullable Set<Port> exposedPorts) { return setToMap(exposedPorts, port -> port.getPort() + "/" + port.getProtocol()); } ImageToJsonTranslator(Image image); JsonTemplate getContainerConfiguration(); T getManifestTemplate(
      Class<T> manifestTemplateClass, BlobDescriptor containerConfigurationBlobDescriptor);  }### Answer:
@Test public void testPortListToMap() { ImmutableSet<Port> input = ImmutableSet.of(Port.tcp(1000), Port.udp(2000)); ImmutableSortedMap<String, Map<?, ?>> expected = ImmutableSortedMap.of("1000/tcp", ImmutableMap.of(), "2000/udp", ImmutableMap.of()); Assert.assertEquals(expected, ImageToJsonTranslator.portSetToMap(input)); }