/**
  * Registers script engines needed for language support.
  *
  * <p>When adding support to this class for a new engine, this method must be modified to support
  * that language
  */
 private static void registerScriptEngines() {
   if (!BSFManager.isLanguageRegistered(Language.RUBY.name())) {
     BSFManager.registerScriptingEngine(
         Language.RUBY.name(),
         "org.jruby.javasupport.bsf.JRubyEngine", //$NON-NLS-1$
         new String[] {"rb"}); // $NON-NLS-1$
   }
 }
 @Test
 public void testLoad() {
   Configuration config = Configuration.instance();
   try {
     config.load();
   } catch (ConfigurationException e) {
     e.printStackTrace();
     fail();
   }
   assertTrue(BSFManager.isLanguageRegistered("BeanShell"));
 }