@Test
public void parseModel_interfacesList_notEmptyActorsInterfaces() {

    ActorInterfaceDescription interface1 = Mockito.mock(ActorInterfaceDescription.class);
    ActorInterfaceDescription interface2 = Mockito.mock(ActorInterfaceDescription.class);
    ActorInterfaceDescription interface3 = Mockito.mock(ActorInterfaceDescription.class);
    Mockito.doReturn(interface1).doReturn(interface2).doReturn(interface3).when(mFactory).createInterfaceDescription(Mockito.<Element>any());
    HashSet<Element> elements = new HashSet<>();
    elements.add(Mockito.mock(Element.class));
    elements.add(Mockito.mock(Element.class));
    elements.add(Mockito.mock(Element.class));
    Mockito.doReturn(elements).when(mEnvironment).getElementsAnnotatedWith(ActorInterface.class);
    ActorParsedModel model = new ActorParsedModel();
    model.collectInterfaces = true;
    ActorsProcessor processor = new ActorsProcessor(mFactory);
    processor.parseModel(model, mEnvironment);
    for (Element element : elements) {
        Mockito.verify(mFactory).createInterfaceDescription(element);
    }
    Mockito.verifyNoMoreInteractions(mFactory);
    Assert.assertSame(interface1, model.interfaces.get(0));
    Assert.assertSame(interface2, model.interfaces.get(1));
    Assert.assertSame(interface3, model.interfaces.get(2));
}