@Test
public void testGetSocketTimeout() throws Exception {

    Assert.assertEquals(Timeout.DISABLED, conn.getSocketTimeout());
    Mockito.when(socket.getSoTimeout()).thenReturn(345);
    conn.bind(socket);
    Assert.assertEquals(Timeout.ofMilliseconds(345), conn.getSocketTimeout());
}