ComponentProxyObjectFactory { protected abstract String getConfigFileName();    }
@Test public void testGetConfigFileName() { try { ComponentProxyObjectFactory sut = new ComponentProxyObjectFactory() { @Override protected String getConfigFileName() { return "TEST_CONFIG_FILE_NAME"; } }; String configFileName = sut.getConfigFileName(); assertNotNull("Config file name was null", configFileName); assertEquals("Config file name not equal", "TEST_CONFIG_FILE_NAME", configFileName); } catch (Throwable t) { System.out.println("Error running testGetConfigFileName test: " + t.getMessage()); t.printStackTrace(); fail("Error running testGetConfigFileName test: " + t.getMessage()); } }