	@Test
	public void testGetbyAccForUser() throws Exception {

		//Test for private study
		Study study = dao.getByAccForUser("BII-ST-1", "test_user");
		assertNotNull(study);

		//Test for private study with curator user
		study = dao.getByAccForUser("BII-ST-1", "curator");
		assertNotNull(study);

		//Test for private study with guest user
		Exception exception = null;
		try {
			study = dao.getByAccForUser("BII-ST-1", "ttt");
		} catch (Exception e) {
			exception = e;
		}
		assertNotNull(exception);


		//Test for public study
		study = dao.getByAccForUser("BII-ST-2", "test_user");
		assertNotNull(study);
	}