@VisibleForTesting
  static Set<AbsoluteUnixPath> getVolumesSet(RawConfiguration rawConfiguration)
      throws InvalidContainerVolumeException {
    Set<AbsoluteUnixPath> volumes = new HashSet<>();
    for (String path : rawConfiguration.getVolumes()) {
      try {
        AbsoluteUnixPath absoluteUnixPath = AbsoluteUnixPath.get(path);
        volumes.add(absoluteUnixPath);
      } catch (IllegalArgumentException exception) {
        throw new InvalidContainerVolumeException(path, path, exception);
      }
    }

    return volumes;
  }
@Test
  public void testGetValidVolumesList() throws InvalidContainerVolumeException {
    when(rawConfiguration.getVolumes()).thenReturn(Collections.singletonList("/some/root"));

    assertThat(PluginConfigurationProcessor.getVolumesSet(rawConfiguration))
        .containsExactly(AbsoluteUnixPath.get("/some/root"));
  }