ServiceRepositoryImpl implements ServiceRepository { @Override public Map<CloudType, Set<OperationType>> getSupportedOperations() { Map<CloudType, Set<OperationType>> ret = processRequestOrException(() -> { Call<Map<CloudType, Set<OperationType>>> call = apiProvider.getServiceApi().getSupportedOperations(); return call.execute().body(); }); return ret != null ? ret : Collections.emptyMap(); } @Autowired  ServiceRepositoryImpl(ApiProvider apiProvider); @Override Map<CloudType, Set<OperationType>> getSupportedOperations();  }
@Test public void testGetSupportedOperations() { assertThat( serviceRepository.getSupportedOperations(), equalTo(Collections.singletonMap(MOCK, Collections.singleton(ADD_IMAGE))) ); }