hypertext.getContent().add(term3);
project.addModelElement(hypertext);
new DeleteHypertextEmptyTermsCommand(hypertext).runWithoutUnicaseCommand();
assertEquals(4, hypertext.getContent().size());
assertEquals("foo ", hypertext.getContent().get(0).getVisibleContent());
assertEquals("link1", hypertext.getContent().get(1).getVisibleContent());
assertEquals("link2", hypertext.getContent().get(2).getVisibleContent());
assertEquals(" bar", hypertext.getContent().get(3).getVisibleContent());