TextSynthesizedOutputFactory implements ResourceFactory<SynthesizedOutput> { public SynthesizedOutput createResource() throws NoresourceError { return new TextSynthesizedOutput(); } TextSynthesizedOutputFactory(); SynthesizedOutput createResource(); void setInstances(final int number); int getInstances(); String getType(); Class<SynthesizedOutput> getResourceType();  }
@Test public void testCreateResource() throws Exception, NoresourceError { for (int i = 0; i < INSTANCES; i++) { SynthesizedOutput output = factory.createResource(); Assert.assertEquals("text", output.getType()); } }