* @throws Exception if so.
*/
@Test
public void testOnStartedSilentMode() throws Exception {
AbstractBuild build = mockBuild("projectX", 2);
ManualPatchsetCreated event = Setup.createManualPatchsetCreated();
event = spy(event);
GerritCause cause = new GerritCause(event, true);
when(build.getCause(GerritCause.class)).thenReturn(cause);
CauseAction causeAction = mock(CauseAction.class);
when(causeAction.getCauses()).thenReturn(Collections.<Cause>singletonList(cause));