    @Test
    public void dockerFileShouldBeCreated() throws Exception {

        VirtualFile fileNode = factory.newInstance(SOME_TEXT);

        verify(dtoFactory).createDto(Link.class);
        verify(link).withHref(SOME_TEXT);
        verify(link).withRel(GET_CONTENT);


        verify(dtoFactory).createDto(ItemReference.class);
        verify(itemReference).withName(NAME);
        verify(itemReference).withPath(PATH);
        verify(itemReference).withMediaType(TYPE);

        verify(itemReference).withLinks(linkListCaptor.capture());

        List<Link> links = linkListCaptor.getValue();

        assertThat(links.get(0), equalTo(link));

        assertThat(fileNode, notNullValue());
        assertThat(fileNode, instanceOf(DockerFile.class));
    }