@Test public void produceLinkLocalIp_exceptionReadingNics() throws Exception {

  mockStatic(NetworkInterface.class);
  when(NetworkInterface.getNetworkInterfaces()).thenThrow(SocketException.class);
  assertThat(platform.produceLinkLocalIp())
    .isNull();
}