    @Test
    public void testScanCodeLocationName() {

        final String expected = "hub-common-rest/target/hub-common-rest/2.5.1-SNAPSHOT scan";

        final DetectFileFinder detectFileFinder = mock(DetectFileFinder.class);
        when(detectFileFinder.extractFinalPieceFromPath("/Users/ekerwin/Documents/source/integration/hub-common-rest")).thenReturn("hub-common-rest");
        final CodeLocationNameGenerator codeLocationNameGenerator = new CodeLocationNameGenerator(detectFileFinder);

        final String sourcePath = "/Users/ekerwin/Documents/source/integration/hub-common-rest";
        final String scanTargetPath = "/Users/ekerwin/Documents/source/integration/hub-common-rest/target";
        final String projectName = "hub-common-rest";
        final String projectVersionName = "2.5.1-SNAPSHOT";
        final String prefix = "";
        final String suffix = "";
        final String actual = codeLocationNameGenerator.createScanCodeLocationName(sourcePath, scanTargetPath, projectName, projectVersionName, prefix, suffix);

        assertEquals(expected, actual);
    }