ComponentProxyObjectFactory { protected String getPropertyFileURL() { return PropertyAccessor.getInstance().getPropertyFileURL(); }    }
@Test public void testGetPropertyFileURL() { try { ComponentProxyObjectFactory sut = new ComponentProxyObjectFactory() { @Override protected String getPropertyFileURL() { return "TEST_PROPERTY_FILE_URL"; } @Override protected String getConfigFileName() { return ""; } }; String propertyFileURL = sut.getPropertyFileURL(); assertNotNull("Property file URL was null", propertyFileURL); assertEquals("Property file URL not equal", "TEST_PROPERTY_FILE_URL", propertyFileURL); } catch (Throwable t) { System.out.println("Error running testGetPropertyFileURL test: " + t.getMessage()); t.printStackTrace(); fail("Error running testGetPropertyFileURL test: " + t.getMessage()); } }