### Question:
SDNCRequestIdUtil { public static String getSDNCOriginalRequestId(String newRequestId) { if (newRequestId.split("-").length == 6) { return newRequestId.substring(0, newRequestId.lastIndexOf('-')); } return newRequestId; } private  SDNCRequestIdUtil(); static String getSDNCOriginalRequestId(String newRequestId);  }### Answer:
@Test public final void testGetSDNCOriginalRequestId() { String originalRequestId = UUID.randomUUID().toString(); String postfixedRequestId = originalRequestId + "-1466203712068"; String postfixedRequestId2 = originalRequestId + "-1466203712068-2"; assertEquals(originalRequestId, SDNCRequestIdUtil.getSDNCOriginalRequestId(postfixedRequestId)); assertEquals(postfixedRequestId2, SDNCRequestIdUtil.getSDNCOriginalRequestId(postfixedRequestId2)); }