@Test
public void shouldCreateSingleObjectWithGivenValueAsKey() {

    // given
    Annotation annotation = annotation().withValue("TEST_CODE").build();
    // when
    Map<RepositoryObjectKey, Object> objects = annotatedObjectFactory.createObjects(Object.class, annotation);
    // then
    assertThatItemMap(objects).containsRepositoryKey("TEST_CODE").hasSize(1);
}