### Question:
PaaSOfferingProfilesRepository implements eu.cloud4soa.api.repository.PaaSOfferingProfilesRepository { @Override public String storePaaSInstance(PaaSInstance paaSInstance) throws RepositoryException{ logger.debug("storePaaSInstance(PaaSInstance paaSInstance)"); if(paaSInstance.getUriId()==null){ try { PaaSOffering paaSOffering = (PaaSOffering)((PaaSInstance)paaSInstance).getPaaSOffering(); paaSOffering.setUriId(getUUID()); setUriIds(paaSOffering); repositoryManager.getManager().add(paaSOffering); return paaSOffering.getUriId(); } catch (RDFBeanException ex) { logger.error("RDFBeanException: "+ex); throw new RepositoryException("PaaSOfferingProfilesRepository", ex); } } return null; }  void setRepositoryManager(RepositoryManager repositoryManager); @Override List<PaaSInstance> getPaaSInstances(ApplicationInstance applicationInstance); @Override PaaSInstance getPaaSInstance(String paaSInstanceUriId); @Override void updatePaaSInstance(PaaSInstance paaSInstance, PaaSRating paaSRating); @Override String storePaaSInstance(PaaSInstance paaSInstance); @Override List<PaaSInstance> getAllAvailablePaaSInstances(); @Override void removePaaSInstance(String paasInstanceUriId); @Override List<PaaSInstance> retrieveAllPaaSInstances(String userInstanceUriId);  }### Answer:
@Test public void TestStorePaaSInstance (){ try { paaSOfferingProfilesRepository.storePaaSInstance(paaSInstance); } catch (RepositoryException ex) { Assert.fail("storePaaSInstance method has thrown an exception!"); } String paaSInstanceUriId = paaSInstance.getUriId(); List<PaaSInstance> retrieveAllPaaSInstances = null; try { retrieveAllPaaSInstances = paaSOfferingProfilesRepository.retrieveAllPaaSInstances(paaSUserUriId); } catch (RepositoryException ex) { Assert.fail("retrieveAllPaaSInstances method has thrown an exception!"); } Assert.assertEquals("Bad dimension", 1, retrieveAllPaaSInstances.size()); PaaSInstance retrievedPaaSInstance = retrieveAllPaaSInstances.get(0); Assert.assertEquals("Different UriId", paaSInstanceUriId, retrievedPaaSInstance.getUriId()); System.out.println(retrievedPaaSInstance); }