public List<InetAddress> getNetworkInterfaceAddresses() throws SocketException {
    return Collections.list(NetworkInterface.getNetworkInterfaces())
      .stream()
      .flatMap(ni -> Collections.list(ni.getInetAddresses()).stream())
      .toList();
  }
@Test
  public void itGetsListOfNetworkInterfaceAddresses() throws SocketException {
    assertThat(underTest.getNetworkInterfaceAddresses())
      .isInstanceOf(List.class)
      .hasSizeGreaterThan(0);
  }