### Question:
CollectionNameHelper { public static String collectionName(String unprefixedEntityName, Vre vre) { return collectionName(unprefixedEntityName, vre.getVreName()); }  static String defaultCollectionName(Vre vre); static String defaultCollectionName(String vreName); static String collectionName(String unprefixedEntityName, Vre vre); static String collectionName(String unprefixedEntityName, String vreName); static String defaultEntityTypeName(Vre vre); static String defaultEntityTypeName(String vreName); static String entityTypeName(String unprefixedEntityName, Vre vre); static String entityTypeName(String unprefixedEntityName, String vreName); static String rdfUri(String unprefixedEntityName, Vre vre);  }### Answer:
@Test public void collectionNamePrefixesTheCollectionNameWithTheVreName() { Vre vre = VreStubs.withName(VRE_NAME); String collectionName = CollectionNameHelper.collectionName(UNPREFIXED_ENTITY_NAME, vre); assertThat(collectionName, allOf(startsWith(VRE_NAME), containsString(UNPREFIXED_ENTITY_NAME))); }
@Test public void collectionNameDoesNotPrefixForTheAdminVre() { Vre vre = VreStubs.withName(ADMIN_VRE); String collectionName = CollectionNameHelper.collectionName(UNPREFIXED_ENTITY_NAME, vre); assertThat(collectionName, not(startsWith(ADMIN_VRE))); }
@Test public void collectionNameDoesPostfixesTheNameWithAnS() { Vre vre = VreStubs.withName(ADMIN_VRE); String collectionName = CollectionNameHelper.collectionName(UNPREFIXED_ENTITY_NAME, vre); assertThat(collectionName, endsWith("s")); }