@Test
public void getCDNoProduct() {

    final RepositoryHandler repoHandler = mock(RepositoryHandler.class);
    when(repoHandler.getOneByQuery(anyString(), anyString(), any(Class.class))).thenReturn(Optional.empty());
    final DataFetchingUtils sut = new DataFetchingUtils();
    final Optional<Delivery> result = sut.getCommercialDelivery(repoHandler, "a name", "a version");
    assertFalse(result.isPresent());
}