@Test
  public void testBasicReadObject_SocketExceptionReThrown()
      throws IOException, ClassNotFoundException {
    DataInput in = mock(DataInput.class);
    doReturn(DSCODE.DS_NO_FIXED_ID.toByte()).doReturn(DSCODE.CLASS.toByte())
        .doReturn(DSCODE.STRING.toByte()).when(in).readByte();
    doReturn(
        "org.apache.geode.internal.InternalDataSerializerJUnitTest$SocketExceptionThrowingDataSerializable")
            .when(in).readUTF();

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