public static void tryEnrichClusterEntryPointError(@Nullable Throwable root) {
        tryEnrichOutOfMemoryError(
                root,
                JM_METASPACE_OOM_ERROR_MESSAGE,
                JM_DIRECT_OOM_ERROR_MESSAGE,
                JM_HEAP_SPACE_OOM_ERROR_MESSAGE);
    }
@Test
    public void testAnyOtherOOMHandling() {
        String message = "Any other message won't be changed.";
        OutOfMemoryError error = new OutOfMemoryError(message);
        ClusterEntryPointExceptionUtils.tryEnrichClusterEntryPointError(error);

        assertThat(error.getMessage(), is(message));
    }