*
* @throws Exception
*/
public void testInvalidOptionsNonJta() throws Exception {
ResourceInfo supplied = addDataSource("Orange", OrangeDriver.class, "jdbc:orange:some:stuff", true);
ResourceInfo badMatch = addDataSource("Lime", LimeDriver.class, "jdbc:lime:some:stuff", false);
assertSame(supplied, resources.get(0));
assertSame(badMatch, resources.get(1));
PersistenceUnitInfo unitInfo = addPersistenceUnit("orange-unit", "Orange", null);
assertNotNull(unitInfo);
ResourceInfo generated = resources.get(2);
assertEquals(supplied.id, unitInfo.jtaDataSource);
assertEquals(generated.id, unitInfo.nonJtaDataSource);