@Test
public void getProductMetricComponents() throws Exception {

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