@Test
public void getProductComponents() throws Exception {

    when(portfolioService.getProductComponents("test", "LOB","product1")).thenReturn(Stream.of(TestUtils.makeBuildingBlockMetricSummary()).collect(Collectors.toList()));
    mockMvc.perform(MockMvcRequestBuilders.get("/portfolio/test/lob/products/product1/components"))
            .andExpect(status().isOk());
    verify(portfolioService).getProductComponents("test", "lob","product1");
}