@Test
  public void testInvokeFromData_SocketExceptionRethrown()
      throws IOException, ClassNotFoundException {
    DataInput in = mock(DataInput.class);
    DataSerializable ds = mock(DataSerializable.class);

    doThrow(SocketException.class).when(ds).fromData(in);

    assertThatThrownBy(() -> InternalDataSerializer.invokeFromData(ds, in))
        .isInstanceOf(SocketException.class);
  }
Tests the functionality of the {@link InternalDataSerializer} class.
geode-core/src/test/java/org/apache/geode/internal/InternalDataSerializerJUnitTest.java