### Question:
VolumeUtils { public static String buildVolumePathStringZeroVolumeHandled(int volumeCount, String directory) { if (volumeCount == 0) { return buildVolumePathString(FIRST_VOLUME, directory, ROOT_VOLUME_PREFIX); } return buildVolumePathString(volumeCount, directory, VOLUME_PREFIX); } private  VolumeUtils(); static String buildVolumePathString(int volumeCount, String directory); static String buildVolumePathStringZeroVolumeHandled(int volumeCount, String directory); static String buildSingleVolumePath(int volumeCount, String directory); static String buildSingleVolumePath(int volumeIndex, int volumeCount, String directory); static String getLogVolume(String directory); static String buildVolumePathFromVolumeIndexZeroVolumeHandled(int startIndex, int volumeCount, String directory); static long convertGBToBytes(int sizeInGb); static final String VOLUME_PREFIX; static final String ROOT_VOLUME_PREFIX; }### Answer:
@Test public void testBuildVolumePathStringZeroVolumesHandledWithZeroDisk() { String directories = VolumeUtils.buildVolumePathStringZeroVolumeHandled(0, "test"); assertEquals("/hadoopfs/root1/test", directories); }
@Test public void testBuildVolumePathStringZeroVolumesHandledWithOneDisk() { String directories = VolumeUtils.buildVolumePathStringZeroVolumeHandled(1, "test"); assertEquals("/hadoopfs/fs1/test", directories); }
@Test public void testBuildVolumePathStringZeroVolumesHandledWithManyDisks() { String directories = VolumeUtils.buildVolumePathStringZeroVolumeHandled(3, "test"); assertEquals("/hadoopfs/fs1/test,/hadoopfs/fs2/test,/hadoopfs/fs3/test", directories); }