@Test
public void getPortfolio() throws Exception {

	when(service.getPortfolio(ServiceTestConfiguration.USER_ID))
			.thenReturn(ServiceTestConfiguration.portfolio());
	mockMvc.perform(
			get("/portfolio/" + ServiceTestConfiguration.USER_ID)
					.contentType(MediaType.APPLICATION_JSON))
			.andExpect(status().isOk())
			.andDo(print())
			.andExpect(
					content().contentTypeCompatibleWith(
							MediaType.APPLICATION_JSON))
			.andExpect(
					jsonPath("$.userName").value(
							ServiceTestConfiguration.USER_ID))
			.andExpect(jsonPath("$.holdings.*").value(hasSize(1)))
			.andDo(print());
}