The tips are not contradictory if you follow the advice to start at a higher level.
Let's say you had to invent that wire protocol. You would write a test for a client that doesn't care which wire protocol is used.
Let's say you had to invent that wire protocol. You would write a test for a client that doesn't care which wire protocol is used.