@Test
  public void serializesWithoutThrowingNotSerializableException() {
    Result result = mock(Result.class);
    CommandResultException instance = new CommandResultException(result);

    assertThatCode(() -> SerializationUtils.clone(instance))
        .doesNotThrowAnyException();
  }
Note: Result is NOT Serializable and so it must be transient to avoid failure.
geode-gfsh/src/test/java/org/apache/geode/management/internal/cli/result/CommandResultExceptionTest.java