public void testGenerateClassesWithRefs(Set<String> objectNames, Set<String> expectedFileNames)
throws ConnectionException, IOException {
try {
ForceJPAClassGenerator generator = new ForceJPAClassGenerator();
generator.setPackageName("com.ftest.model");
generator.setObjectFilter(new ObjectNameWithRefFilter(objectNames));
ForceServiceConnector connector = new ForceServiceConnector(PropsUtil.FORCE_SDK_TEST_NAME);
int classCount = generator.generateCode(connector.getConnection(), new File(TMP_DIR));
int expectedCount = expectedFileNames.size();