    @Test
    public void getProductBaselineTest() throws ApplicationException {


        PartUsageLink partLink = new PartUsageLink();
        List<PartLink> partLinks = Collections.singletonList(partLink);
        partLink.setComponent(partMaster);

        Mockito.when(productBaselineService.getBaseline(baseline.getId()))
               .thenReturn(baseline);

        Mockito.when(productService.decodePath(configurationItemKey, path))
                .thenReturn(partLinks);

        PartUsageLink link = new PartUsageLink();
        link.setComponent(partMaster);
        List<PartLink> sourcePath = Collections.singletonList(link);
        Mockito.when(productService.decodePath(configurationItemKey, p2pLink.getSourcePath()))
                .thenReturn(sourcePath);

        List<PartLink> targetPath = Collections.singletonList(link);
        Mockito.when(productService.decodePath(configurationItemKey, p2pLink.getTargetPath()))
                .thenReturn(targetPath);

        ProductBaselineDTO productBaseline = productBaselineResource.getProductBaseline(workspaceId, ciId, baseline.getId());
        Assert.assertNotNull(productBaseline);
    }