@Before public void prepare() { Mockito.when(systemStatus.isNexusStarted()).thenReturn(true); Mockito.when(applicationStatusSource.getSystemStatus()).thenReturn(systemStatus); Mockito.when(mavenProxyRepository.getId()).thenReturn("central"); Mockito.when(mavenProxyRepository.getName()).thenReturn("Central Repository"); }