### Question:
EJBQLParserFactory { public static EJBQLParser getParser() throws EJBQLException { try { return (EJBQLParser) getParserClass().newInstance(); } catch (Exception e) { throw new EJBQLException("Error creating EJBQL parser", e); } }  static EJBQLParser getParser();  }### Answer:
@Test public void testGetParser() { EJBQLParser parser = EJBQLParserFactory.getParser(); assertNotNull(parser); }
@Test public void testDefaultParser() { EJBQLParser parser = EJBQLParserFactory.getParser(); EJBQLExpression parsedSelect = parser.parse("select a from b"); assertNotNull(parsedSelect); EJBQLExpression parsedDelete = parser.parse("delete from c"); assertNotNull(parsedDelete); }