GemFireSecurityException extends GemFireException { protected boolean isSerializable(final Object object) { if (object == null) { return true; } return Serializable.class.isInstance(object); } GemFireSecurityException(final String message);  GemFireSecurityException(final Throwable cause);  GemFireSecurityException(final String message, final Throwable cause); @Override synchronized Throwable getCause();  }
@Test public void isSerializable() { assertThat(GemFireSecurityException.class).isInstanceOf(Serializable.class); }
@Test public void isSerializableReturnsTrueForSerializableClass() { assertThat(new GemFireSecurityException("").isSerializable(serializableResolvedObj)) .isTrue(); }
@Test public void isSerializableReturnsFalseForNonSerializableClass() { assertThat(new GemFireSecurityException("").isSerializable(nonSerializableResolvedObj)) .isFalse(); }