StudentHelper { public static Long extractLongIdFromUniqueId(String uniqueId) { String[] uniqueIdArray = uniqueId.split("_"); Long longId = Long.valueOf(uniqueIdArray[1]); return longId; }  static String extractDeviceIdFromUniqueId(String uniqueId); static Long extractLongIdFromUniqueId(String uniqueId); static String generateNextUniqueId(Context context, StudentDao studentDao); static File getStudentDirectory(); static File getTestStudentsDirectory(); static File getStudentImageDirectory(); static File getStudentAvatarDirectory();  }
@Test public void testExtractLongIdFromUniqueId() { String uniqueId = "4113947bec18b7ad_1"; Long longId = StudentHelper.extractLongIdFromUniqueId(uniqueId); assertThat(longId, is(1L)); }