@Test
public void getAllTheAvailableLicenses(){

    final DbLicense license = new DbLicense();
    license.setName("Test");
    final RepositoryHandler repoHandler = mock(RepositoryHandler.class);
    when(repoHandler.getAllLicenses()).thenReturn(Collections.singletonList(license));
    final LicenseHandler licenseHandler = new LicenseHandler(repoHandler);
    assertEquals(1, licenseHandler.getLicenses().size());
}