	@Test
	public void getAlbumAndSubAlbumsTest() throws G3GalleryException {

		
		List<Item> subAlbums = itemClient.getAlbumAndSubAlbums(11);
		boolean foundRecentlyAddedAlbum = false;
		for (Item album : subAlbums) {
			// we test if we can find the previously added album
			if (album.getEntity().getId() == createdAlbumId) {
				foundRecentlyAddedAlbum = true;
			}
		}
		assertTrue(foundRecentlyAddedAlbum);
		
		subAlbums = itemClient.getAlbumAndSubAlbums(172);
		for (Item album : subAlbums) {
			// we test if there are only albums returned by the request
			if (!album.getEntity().getType().equals("album")) {
				fail("found some other types than album");
			}
		}
	}