@Test
public void should_serialize_an_object_and_save_it_to_a_file() throws Exception {

    SimpleDesignerArtifact expectedObject = new SimpleDesignerArtifact("foo", "aName", 2);
    repository.save(repoDirectory, expectedObject);
    SimpleDesignerArtifact savedObject = getFromRepository("foo");
    assertThat(savedObject).isEqualTo(expectedObject);
}