	@Test
	public void feed() {

		List<FeedItem> feedItems = Arrays.asList(new FeedItem(USERID, USERNAME, FEEDTEXT, Date.from(LocalDateTime.now().plusDays(1).toInstant(ZoneOffset.UTC))), new FeedItem(USERID, USERNAME, FEEDTEXT + "2"));
		when(repo.findByUserid(eq(USERID)))//, isA(PageRequest.class)))
				.thenReturn(toFuture(feedItems));
		when(user.findId(USERNAME)).thenReturn(Single.just(USERID));

		FeedService service = new FeedService(user, repo, feedItemSubmitter);

		Observable<List<FeedItem>> feed = service.feed(USERNAME);

		assertNotNull("feed was null", feed);
		List<FeedItem> content = feed.toBlocking().first();
		assertEquals("wrong size", 2, content.size());
		//List<FeedItem> content = page.getContent();
		FeedItem item = content.get(0);
		assertNotNull("null item id", item.getId());
		assertEquals("wrong item userid", USERID, item.getUserid());
		assertEquals("wrong item username", USERNAME, item.getUsername());
		assertEquals("wrong item text", FEEDTEXT, item.getText());

		verify(repo).findByUserid(eq(USERID)); //, isA(PageRequest.class));
		verify(user).findId(USERNAME);
	}