ToGerritRunListener toGerritRunListener = Setup.createFailureMessageRunListener(build, event, filepath);
doReturn(fileList).when(toGerritRunListener).getMatchingWorkspaceFiles(any(FilePath.class), eq(filepath));
BuildMemory memory = Whitebox.getInternalState(toGerritRunListener, BuildMemory.class);
memory.started(event, build);
toGerritRunListener.onCompleted(build, mock(TaskListener.class));
verify(toGerritRunListener, times(1)).getMatchingWorkspaceFiles(any(FilePath.class), eq(filepath));
verify(toGerritRunListener, never()).getExpandedContent(any(FilePath.class), any(EnvVars.class));
}