public class FactoryMethodHelloWorldFactoryTest {
@Test
public void testFactoryMethodHelloWorldFactory(){
HelloWorldFactory helloWorldFactory = new HelloWorldFactory();
HelloWorld helloWorld = helloWorldFactory.createHelloWorld();
assertThat(helloWorld.helloWorld(),is("Hello World!"));
FactoryMethodHelloWorldFactory factoryMethodHelloWorldFactory = new FactoryMethodHelloWorldFactory();
helloWorld = factoryMethodHelloWorldFactory.createHelloWorld();
assertThat(helloWorld.helloWorld(),is("Hello Factory Method!"));
}