EntityPatientDiscoveryProxyObjectFactory extends ComponentProxyObjectFactory { @Override protected String getConfigFileName() { return CONFIG_FILE_NAME; }  EntityPatientDiscoveryProxy getEntityPatientDiscoveryProxy();  }
@Test public void testGetConfigFileName() { try { final ApplicationContext mockContext = context.mock(ApplicationContext.class); EntityPatientDiscoveryProxyObjectFactory proxyFactory = new EntityPatientDiscoveryProxyObjectFactory() { @Override protected String getConfigFileName() { return "TEST_CONFIG_FILE_NAME"; } @Override protected ApplicationContext getContext() { return mockContext; } }; assertEquals("Config file name", "TEST_CONFIG_FILE_NAME", proxyFactory.getConfigFileName()); } catch (Throwable t) { System.out.println("Error running testGetConfigFileName test: " + t.getMessage()); t.printStackTrace(); fail("Error running testGetConfigFileName test: " + t.getMessage()); } }