public static int getTestId(String nameTestVal) throws ClassNotFoundException {

    TestDAO tempTest = mysqlFactory.getTestDAO();
    return tempTest.findTest(nameTestVal).getTestId();
  }
 public static String getTestName(int idTest) throws ClassNotFoundException {
   TestDAO tempTest = mysqlFactory.getTestDAO();
   return tempTest.getTestNameById(idTest);
 }
 public static void addNewTest(String nameTestVal, int subjectIdValue)
     throws ClassNotFoundException {
   TestDAO newTest = mysqlFactory.getTestDAO();
   newTest.insertTest(nameTestVal, subjectIdValue);
 }