@Test
public void getPortfolioMetricProducts() throws Exception {

    when(metricsService.getPortfolioMetricProducts(MetricType.SCM_COMMITS,"portfolio1", "lob")).thenReturn(Stream.of(TestUtils.makeBuildingBlockMetricSummary()).collect(Collectors.toList()));
    mockMvc.perform(MockMvcRequestBuilders.get("/metrics/SCM/portfolio/portfolio1/lob/product"))
            .andDo(print())
            .andExpect(status().isOk());
    verify(metricsService).getPortfolioMetricProducts(null,"portfolio1", "lob");
}