NamerFactory { public static NamerFactory getInstance() { if (instance == null) { instance = new NamerFactory(); } return instance; } private  NamerFactory(); static NamerFactory getInstance(); Namer getNamer(String language);  }
@Test public void seeIfGetInstanceAlwaysRefersToTheSameInstance() { assertNotNull(NamerFactory.getInstance()); assertSame(NamerFactory.getInstance(), NamerFactory.getInstance()); }