SequenceIdUtil { public String getDescriptorKey(final String sequenceId) { return sequenceId.split(ESCAPED_SEQUENCE_ID_SEPARATOR)[0]; }  String getDescriptorKey(final String sequenceId); String getHandlerKey(final String sequenceId); String createSequenceId(final String handlerKey, final SequenceDescriptor sequenceDescriptor);  }
@Test public void testGetDescriptorKey() { String sequenceId = "TestGroup_testDescriptor_1|abc"; String result = underTest.getDescriptorKey(sequenceId); Assert.assertEquals(result, "TestGroup_testDescriptor_1"); }