@Test
public void getPortfolioMetricDetail() throws Exception {

    when(metricsService.getPortfolioMetricDetail(MetricType.SCM_COMMITS,"portfolio1", "lob")).thenReturn(TestUtils.makeProductMetricDetail());
    mockMvc.perform(MockMvcRequestBuilders.get("/metrics/SCM/portfolio/portfolio1/lob/detail"))
            .andDo(print())
            .andExpect(status().isOk());
    verify(metricsService).getPortfolioMetricDetail(null,"portfolio1", "lob");
}