### Question:
StudyEJB3DAO extends AccessibleEJB3DAO<Study> implements StudyDAO { public List<PropertyValue> getValuesOfPropertyForStudyId(Long studyId, String propertyName) { return entityManager.createQuery("SELECT distinct pv " + "FROM AssayResult ar join ar.cascadedPropertyValues pv, Property p " + "WHERE " + "ar.study.id =:studyId " + "AND pv.type = p.id " + "AND lower(p.value) like lower(:name)") .setParameter("studyId", studyId) .setParameter("name", propertyName) .getResultList(); } StudyEJB3DAO();  StudyEJB3DAO(EntityManager entityManager); List<Property<FactorValue>> getFactorsForStudy(Long studyId); List<Property<CharacteristicValue>> getCharacteristicsForStudy(Long studyId); List<PropertyValue> getValuesOfPropertyForStudyId(Long studyId, String propertyName); List<PropertyValue> getValuesOfPropertyForStudyAcc(String studyAcc, String propertyName); List<String> filterByOntologyTermAndRefAcc(String termAcc, String refSourceAcc); List<String> filterByOntologyTermAndRefName(String termAcc, String refSourceName); List<String> filterFactorsByOntologyTermAndRefName(String termAcc, String refSourceName); List<String> filterFactorsByOntologyTermAndRefNameForUser(String termAcc, String refSourceName, String userName); boolean studyExists(String acc); List<String> getAllStudyAccs(); List<Study> getStudiesByContact(Contact contact); List<Study> getStudiesByContactLastName(String lastName); List<Study> getStudiesByContactEmail(String email); List<Study> getStudiesByContactAffiliation(String affiliation); List<Study> getStudiesByPubmedIdOrDoi(String id); List<Study> getStudiesByProperty(PropertyValuesWS property); List<Study> getStudiesByAssayType(AssayTypeWS assayType); List<String> getPublicStudyAccs(); List<String> getStudyAccForUser(String userName); List<String> getOwnedStudiesForUser(String userName); Study getByAccForUser(String acc, String userName); void changeStudyStatus(String acc, VisibilityStatus status); Map<String, VisibilityStatus> getVisibilityStatusForStudies(); void addUserToStudy(String acc, User user); void removeUserFromStudy(String acc, User user);  }### Answer:
@Test public void testGetValuesOfProperty() { List<PropertyValue> propertyValues = dao.getValuesOfPropertyForStudyId((long) 100, "organism"); assertNotNull(propertyValues); assertEquals(2, propertyValues.size()); }