@Test
public void parseModel_packagesList_notEmptyPackages() {

    ActorsPackageDescription package1 = Mockito.mock(ActorsPackageDescription.class);
    Mockito.doReturn(package1).when(mFactory).createPackageDescription(Mockito.<Element>any());
    Element element = Mockito.mock(Element.class);
    HashSet<Element> elements = new HashSet<>();
    elements.add(element);
    Mockito.doReturn(elements).when(mEnvironment).getElementsAnnotatedWith(ActorsPackage.class);
    ActorParsedModel model = new ActorParsedModel();
    model.collectPackages = true;
    ActorsProcessor processor = new ActorsProcessor(mFactory);
    processor.parseModel(model, mEnvironment);
    Mockito.verify(mFactory).createPackageDescription(element);
    Mockito.verifyNoMoreInteractions(mFactory);
    Assert.assertSame(package1, model.packages.get(0));
}