### Question:
StartupService { @Retryable(value = {Exception.class}, maxAttempts = 5, backoff = @Backoff(delay = 5000, multiplier = 2)) public List<EsrSystemInfo> receiveVnfm() throws VeVnfmException { return aaiConnection.receiveVnfm(); } StartupService(final ConfigProperties configProperties, final AaiConnection aaiConnection); @Retryable(value = {Exception.class}, maxAttempts = 5, backoff = @Backoff(delay = 5000, multiplier = 2)) List<EsrSystemInfo> receiveVnfm(); @Recover List<EsrSystemInfo> recoverReceiveVnfm(final Throwable t);  }### Answer:
@Test public void testSuccess() throws Exception { final EsrSystemInfo info = new EsrSystemInfo(); info.setServiceUrl(URL); final List<EsrSystemInfo> infos = Collections.singletonList(info); when(aaiConnection.receiveVnfm()).thenReturn(infos); final List<EsrSystemInfo> systemInfo = startupService.receiveVnfm(); verify(aaiConnection).receiveVnfm(); assertEquals(infos, systemInfo); }