ParticipantId implements Serializable { public static ParticipantId valueOf(String participantId) { return new ParticipantId(parse(participantId.trim())); } ParticipantId(String participantId);  ParticipantId(final Icd schemeId, final String organisationId); static ParticipantId valueOf(String participantId); static boolean isValidParticipantIdentifierPattern(String value); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); ParticipantIdentifier toVefa();  }
@Test public void testSample() { ParticipantId.valueOf("9908:810018909"); }
@Test(expectedExceptions = {InvalidPeppolParticipantException.class}) public void testInvalidScheme() { ParticipantId.valueOf("0001:976098897"); }
@Test(expectedExceptions = InvalidPeppolParticipantException.class) public void testOrgIdWithNoDigits() { ParticipantId.valueOf("sender"); }