public void publishBuiltInArtifacts(GoPublisher publisher, final File rootPath) {
        switch (artifactPlanType) {
            case unit:
                publishTestArtifact(publisher, rootPath);
                break;
            case file:
                publishBuildArtifact(publisher, rootPath);
                break;
        }
    }
@Test
    public void shouldPublishArtifacts() {
        final GoPublisher publisher = mock(GoPublisher.class);
        final ArtifactPlan artifactPlan = new ArtifactPlan(ArtifactPlanType.file, "src", "dest");

        artifactPlan.publishBuiltInArtifacts(publisher, testFolder.toFile());
        verify(publisher).upload(testFolder.resolve("src").toFile(), "dest");
    }