@Test
public void testSetSocketTimeout() throws Exception {

    conn.bind(socket);
    conn.setSocketTimeout(Timeout.ofMilliseconds(123));
    Mockito.verify(socket, Mockito.times(1)).setSoTimeout(123);
}