### Question:
DeFiBusRequestIDUtil { public static String createUniqueName(String prefix) { if (prefix != null && prefix.trim().length() != 0) { StringBuilder bldr = new StringBuilder(prefix); bldr.append("/"); bldr.append(UUID.randomUUID().toString()); return bldr.toString(); } else { return UUID.randomUUID().toString(); } }  static String createUniqueName(String prefix);  }### Answer:
@Test public void testCreateUniqueNameByPrefix() { String prefix = "w"; String UniqueName = DeFiBusRequestIDUtil.createUniqueName(prefix); String prefix2 = UniqueName.split("/")[0]; assertTrue(prefix.equals(prefix2)); }
@Test(expected = ArrayIndexOutOfBoundsException.class) public void testCreateUniqueNameNoPrefix() { String UniqueName = DeFiBusRequestIDUtil.createUniqueName(null); String prefix2 = UniqueName.split("/")[1]; }