@Test
public void should_not_set_designer_version_while_saving_if_already_set() throws Exception {

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