@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 testGetInvalidVolumesList() {
    when(rawConfiguration.getVolumes()).thenReturn(Collections.singletonList("`some/root"));

    InvalidContainerVolumeException exception =
        assertThrows(
            InvalidContainerVolumeException.class,
            () -> PluginConfigurationProcessor.getVolumesSet(rawConfiguration));
    assertThat(exception).hasMessageThat().isEqualTo("`some/root");
    assertThat(exception.getInvalidVolume()).isEqualTo("`some/root");
  }