### Question:
PaaSOfferingDiscovery implements eu.cloud4soa.api.soa.PaaSOfferingDiscovery { @Override public List<PaaSInstance> getAllAvailablePaaSInstances() throws SOAException { logger.debug("call paaSOfferingProfilesRepository.getAllAvailablePaaSInstances()"); List<PaaSInstance> allAvailablePaaSInstances; try { allAvailablePaaSInstances = paaSOfferingProfilesRepository.getAllAvailablePaaSInstances(); } catch (RepositoryException ex) { throw new SOAException(Response.Status.INTERNAL_SERVER_ERROR, ex.getMessage()); } logger.debug("retrieved allAvailablePaaSInstances: " + allAvailablePaaSInstances); return allAvailablePaaSInstances; }  @Required void setPaaSOfferingProfilesRepository(PaaSOfferingProfilesRepository paaSOfferingProfilesRepository); @Required void setApplicationProfilesRepository(ApplicationProfilesRepository applicationProfilesRepository); @Required void setSearchAndDiscoveryInterfaces(SearchAndDiscoveryInterfaces searchAndDiscoveryInterfaces); void setSlaModule(SLAModule slamodule); @Override MatchingPlatform searchForMatchingPlatform(String applicationInstanceUriId); @Override PaaSInstance searchForPaaS(String paaSInstanceUriId); @Override PaaSProviderDetails getPaaSProviderDetails(String paaSInstanceUriId); @Override String query(String sparql); @Override List<PaaSInstance> getAllAvailablePaaSInstances();  }### Answer:
@Test public void TestCreatePaasInstance() { userInstance = createPaaSUserInstance(); String username = "cloudcontrol"; String password = "cloudcontrolPassword"; Response resp; try { resp = userManagementAndSecurityModule.createNewAccount(userInstance, username, password); userInstanceId = (String) resp.getEntity(); } catch (SOAException ex) { Assert.fail("createNewAccount has thrown an exception: " + ex.getMessage()); } createPaaSInstance(); try { announcementModule.storePaaSInstance(paaSInstance, userInstanceId); } catch (SOAException ex) { Assert.fail("storePaaSInstance method has thrown an exception!"); } List<PaaSInstance> paasInstances = null; try { paasInstances = paaSOfferingDiscovery.getAllAvailablePaaSInstances(); } catch (SOAException ex) { Assert.fail("getAllAvailablePaaSInstances method has thrown an exception!"); } Assert.assertTrue(paasInstances != null && !paasInstances.isEmpty()); }