### Question:
RepositoryPIDMinter { public PID mintPremisEventPid(PID parentPid) { String eventId = EVENT_ID_PREFIX + System.currentTimeMillis() + ((int)(Math.random() * 1000)); String eventUrl = URIUtil.join(parentPid.getRepositoryPath(), eventId); return PIDs.get(eventUrl); }  PID mintDepositRecordPid(); PID mintContentPid(); PID mintPremisEventPid(PID parentPid);  }### Answer:
@Test public void mintPremisEventPidTest() { PID parentPid = pidMinter.mintContentPid(); PID pid = pidMinter.mintPremisEventPid(parentPid); assertEquals(RepositoryPathConstants.CONTENT_BASE, pid.getQualifier()); assertTrue(pid.getQualifiedId().startsWith(RepositoryPathConstants.CONTENT_BASE)); assertTrue(pid.getRepositoryPath().matches(".*/event\\d+$")); }