@Test
  public void countShouldCount() {
    when(localVirtualPortRepoMock.count()).thenReturn(2L);

    long count = subject.count();

    assertThat(count, is(2L));
  }
  @Test
  public void findEntries() {
    LocalVirtualPort port = new LocalVirtualPortFactory().create();

    when(localVirtualPortRepoMock.findAll(any(PageRequest.class)))
        .thenReturn(new PageImpl<>(Lists.newArrayList(port)));

    List<? extends VirtualPort> ports = subject.findEntries(5, 10, new Sort("id"));

    assertThat(ports, contains(port));
  }