### Question:
AllocationIdUtil { public static String getAllocationName(final String allocId) { final Matcher matcher = ALLOCATION_ID_PATTERN.matcher(allocId); if (matcher.matches()) { return matcher.group(1); } else { throw new IllegalStateException("Allocation id format is incorrect " + allocId); } }  static String getAllocationName(final String allocId); static Set<Allocation> getOutdatedAllocations(final TestDefinition previous, final TestDefinition current); static String getNextVersionOfAllocationId(final String allocId); static String generateAllocationId(final int index, final int version); static int convertBase26ToDecimal(final char[] chars); static final Comparator<String> ALLOCATION_ID_COMPARATOR; }### Answer:
@Test public void testGetAllocationName() { assertEquals("A", AllocationIdUtil.getAllocationName("#A1")); assertEquals("A", AllocationIdUtil.getAllocationName("#A1111")); assertEquals("BA", AllocationIdUtil.getAllocationName("#BA1")); assertEquals("BBB", AllocationIdUtil.getAllocationName("#BBB123")); }