minor fixed JUnit @deprecated warnings

Signed-off-by: Michael Vorburger <mike@vorburger.ch>
minor clarified socket selection code

Signed-off-by: Michael Vorburger <mike@vorburger.ch>