@Test public void indexerProcessor() throws IndexingException { IndexerCmrProcessor processor = new IndexerCmrProcessor(); processor.log = log; processor.indexingTree = indexingTree; processor.process((DefaultData) null, entityManager); verifyZeroInteractions(log, indexingTree, entityManager); processor.process(new CpuInformationData(), entityManager); verifyZeroInteractions(log, indexingTree, entityManager); processor.process(new InvocationSequenceData(), entityManager); verifyZeroInteractions(log, indexingTree, entityManager); when(invocationAwareData.isOnlyFoundInInvocations()).thenReturn(false); when(invocationAwareData.isOnlyFoundOutsideInvocations()).thenReturn(false); processor.process(invocationAwareData, entityManager); when(invocationAwareData.isOnlyFoundOutsideInvocations()).thenReturn(true); processor.process(invocationAwareData, entityManager); verifyZeroInteractions(log, indexingTree, entityManager); when(invocationAwareData.isOnlyFoundInInvocations()).thenReturn(true); when(invocationAwareData.isOnlyFoundOutsideInvocations()).thenReturn(false); processor.process(invocationAwareData, entityManager); verify(indexingTree, times(1)).put(invocationAwareData); processor.process(invocationAwareData, entityManager); verifyZeroInteractions(entityManager);