public List<BuiltinArtifactConfig> getBuiltInArtifactConfigs() {
        final List<BuiltinArtifactConfig> artifactConfigs = new ArrayList<>();
        for (ArtifactTypeConfig artifactTypeConfig : this) {
            if (artifactTypeConfig instanceof BuiltinArtifactConfig) {
                artifactConfigs.add((BuiltinArtifactConfig) artifactTypeConfig);
            }
        }
        return artifactConfigs;
    }
@Test
    public void getArtifactConfigs_shouldReturnBuiltinArtifactConfigs() {
        ArtifactTypeConfigs allConfigs = new ArtifactTypeConfigs();
        allConfigs.add(new BuildArtifactConfig("src", "dest"));
        allConfigs.add(new BuildArtifactConfig("java", null));
        allConfigs.add(new PluggableArtifactConfig("s3", "cd.go.s3"));
        allConfigs.add(new PluggableArtifactConfig("docker", "cd.go.docker"));

        final List<BuiltinArtifactConfig> artifactConfigs = allConfigs.getBuiltInArtifactConfigs();

        assertThat(artifactConfigs, hasSize(2));
        assertThat(artifactConfigs, containsInAnyOrder(
                new BuildArtifactConfig("src", "dest"),
                new BuildArtifactConfig("java", null)
        ));
    }