DomainBundleContentGenerator extends ContentGenerator { @Override public void createContent() throws IOException { createMavenDescriptors(); } DomainBundleContentGenerator(ProjectInformation projectInformation); @Override void createContent();  }
@Test public void createContentTest() throws IOException { DomainBundleContentGenerator generatorSpy = spy(generator); doNothing().when(generatorSpy).createMavenDescriptors(); generatorSpy.createContent(); verify(generatorSpy, times(1)).createMavenDescriptors(); }