/** Test of getName method, of class JsonpWorld. */ @Test public void testGetName() throws Exception { System.out.println("getName"); final Field nameFdield = instance.getClass().getDeclaredField("name"); // NOI18N. nameFdield.setAccessible(true); final String expResult = (String) nameFdield.get(instance); final String result = instance.getName(); assertNotNull(result); assertEquals(expResult, result); }