@Test
  public void findAll() {
    VirtualPort port = new LocalVirtualPortFactory().create();
    when(virtualPortRepoMock.findAll()).thenReturn(Lists.newArrayList(port));

    List<VirtualPort> ports = subject.findAll();

    assertThat(ports, contains(port));
  }
  @Test
  public void findByNsiV2StpId() {
    VirtualPort port = new LocalVirtualPortFactory().create();
    when(virtualPortRepoMock.findOne(25L)).thenReturn(port);

    Optional<VirtualPort> foundPort =
        subject.findByNsiV2StpId("urn:ogf:network:surfnet.nl:1990:topology:25");

    assertThat(foundPort, isPresent(port));
  }