@Test
public void should_persist_metadata_in_a_seperate_file() throws Exception {

    SimpleDesignerArtifact artifact = aSimpleObjectBuilder()
            .id("baz")
            .metadata("foobar")
            .build();
    repository.save(repoDirectory, artifact);
    assertThat(new String(readAllBytes(repoDirectory.getParent().resolve(".metadata/baz.json"))))
            .isEqualTo("{\"favorite\":false,\"metadata\":\"foobar\"}");
}