	@Test
	public void testClear() throws Exception {

		final TestAdapter adapter = new TestAdapter();

		// ["https://www.tumblr.com", "https://www.tumblr.com", "https://www.tumblr.com", "one", "one",
		//  "http://dreamynomad.com", "http://dreamynomad.com", "http://dreamynomad.com", ...]
		final Uri tumblrUri = Uri.parse("https://www.tumblr.com");
		adapter.add(tumblrUri);
		assertEquals(3, adapter.getItemCount());
		adapter.add("one");
		assertEquals(5, adapter.getItemCount());
		adapter.add(Uri.parse("http://dreamynomad.com"));
		assertEquals(8, adapter.getItemCount());
		adapter.add("three");
		assertEquals(10, adapter.getItemCount());
		final Uri googleUri = Uri.parse("https://google.com");
		adapter.add(googleUri);
		assertEquals(13, adapter.getItemCount());
		adapter.add("five");
		assertEquals(15, adapter.getItemCount());

		adapter.clear();

		assertEquals(0, adapter.getItemCount());
	}