TaxFunctions { static String getSsn(long startSsn) { String ssnString = ""; synchronized (lockSSN) { do { if (lastSSN < 0) lastSSN = startSsn; else lastSSN++; } while (!isValidSsn(lastSSN)); ssnString = "" + lastSSN; for (int z = 0; z < (9 - ssnString.length()); z++) ssnString = "0" + ssnString; } ssnString = ssnString.substring(0, 3) + "-" + ssnString.substring(3, 5) + "-" + ssnString.substring(5, 9); return ssnString; }  static boolean isValid(String[] values); static String executeFunction(String[] values, Variables variables);  }
@Test public void testGetSsn_1() throws Exception { long startSsn = 700010002L; String result = TaxFunctions.getSsn(startSsn); assertNotNull(result); }
@Test public void testGetSsn_2() throws Exception { long startSsn = 700010002L; String result = TaxFunctions.getSsn(startSsn); assertNotNull(result); }
@Test public void testGetSsn_3() throws Exception { long startSsn = 700010002L; String result = TaxFunctions.getSsn(startSsn); assertNotNull(result); }