public static List<ArtifactPlan> toArtifactPlans(ArtifactTypeConfigs artifactConfigs) {
        List<ArtifactPlan> artifactPlans = new ArrayList<>();
        for (ArtifactTypeConfig artifactTypeConfig : artifactConfigs) {
            artifactPlans.add(new ArtifactPlan(artifactTypeConfig));
        }
        return artifactPlans;
    }
@Test
    public void toArtifactPlans_shouldConvertArtifactConfigsToArtifactPlanList() {
        final PluggableArtifactConfig artifactConfig = new PluggableArtifactConfig("id", "storeId", create("Foo", true, "Bar"));
        final ArtifactTypeConfigs artifactTypeConfigs = new ArtifactTypeConfigs(Arrays.asList(
            new BuildArtifactConfig("source", "destination"),
            new TestArtifactConfig("test-source", "test-destination"),
            artifactConfig
        ));

        final List<ArtifactPlan> artifactPlans = ArtifactPlan.toArtifactPlans(artifactTypeConfigs);

        assertThat(artifactPlans).containsExactlyInAnyOrder(
            new ArtifactPlan(ArtifactPlanType.file, "source", "destination"),
            new ArtifactPlan(ArtifactPlanType.unit, "test-source", "test-destination"),
            new ArtifactPlan(artifactConfig.toJSON())
        );
    }