AMStoreUtil { public static String getFileVersionPath( FileVersion fileVersion, String configurationUuid) { StringBundler sb = new StringBundler(11); sb.append("adaptive/"); sb.append(configurationUuid); sb.append("/"); sb.append(fileVersion.getGroupId()); sb.append("/"); sb.append(fileVersion.getRepositoryId()); sb.append("/"); sb.append(fileVersion.getFileEntryId()); sb.append("/"); sb.append(fileVersion.getFileVersionId()); sb.append("/"); return sb.toString(); }  static String getFileVersionPath(
		FileVersion fileVersion, String configurationUuid);  }
@Test public void testGetFileVersionPath() { FileVersion fileVersion = Mockito.mock(FileVersion.class); Mockito.when( fileVersion.getFileEntryId() ).thenReturn( 3L ); Mockito.when( fileVersion.getFileVersionId() ).thenReturn( 4L ); Mockito.when( fileVersion.getGroupId() ).thenReturn( 1L ); Mockito.when( fileVersion.getRepositoryId() ).thenReturn( 2L ); String configurationUuid = RandomTestUtil.randomString(); String fileVersionPath = AMStoreUtil.getFileVersionPath( fileVersion, configurationUuid); Assert.assertEquals( "adaptive/" + configurationUuid + "/1/2/3/4/", fileVersionPath); }