() {

		try {

			TestOne a = createTestNode(TestOne.class);
			TestOne b = createTestNode(TestOne.class);

			try (final Tx tx = app.tx()) {

				Comparator comp = TestOne.anInt.sorted(false);

				try {
					comp.compare(null, null);
					fail("Should have raised an NullPointerException");

				} catch (NullPointerException e) {}

				try {
					comp.compare(a, null);
					fail("Should have raised an NullPointerException");

				} catch (NullPointerException e) {}

				try {
					comp.compare(null, b);
					fail("Should have raised an NullPointerException");

				} catch (NullPointerException e) {}

				try {
					comp.compare(null, b);
					fail("Should have raised an NullPointerException");

				} catch (NullPointerException e) {}

				// a: null
				// b: null
				// a == b => 0
				assertEquals(0, comp.compare(a, b));

				// a: 0
				// b: null
				// a < b => -1
				setPropertyTx(a, TestOne.anInt, 0);
				assertEquals(-1, comp.compare(a, b));

				// a: null
				// b: 0
				// a > b => 1
				setPropertyTx(a, TestOne.anInt, null);
				setPropertyTx(b, TestOne.anInt, 0);
				assertEquals(1, comp.compare(a, b));

				// a: 1
				// b: 2
				// a < b => -1
				setPropertyTx(a, TestOne.anInt, 1);
				setPropertyTx(b, TestOne.anInt, 2);
				assertEquals(-1, comp.compare(a, b));

				// a: 2
				// b: 1
				// a > b => 1
				setPropertyTx(a, TestOne.anInt, 2);
				setPropertyTx(b, TestOne.anInt, 1);
				assertEquals(1, comp.compare(a, b));

				tx.success();
			}

		} catch
() { 

		 try { 

			 TestOne a = createTestNode(TestOne.class); 
			 TestOne b = createTestNode(TestOne.class); 

			 try (final Tx tx = app.tx ()) { 

				 Comparator comprehensive examination = TestOne.anInt.sorted(false); 

				 sample { 
					 comp.compare(null, null); 
					 fail("Should have raised an NullPointerException "); 

				 } catch (NullPointerException e) { } 

				 sample { 
					 comp.compare(a, null); 
					 fail("Should have raise an NullPointerException "); 

				 } catch (NullPointerException e) { } 

				 try { 
					 comp.compare(null, b); 
					 fail("Should have raise an NullPointerException "); 

				 } catch (NullPointerException e) { } 

				 try { 
					 comp.compare(null, b); 
					 fail("Should have raise an NullPointerException "); 

				 } catch (NullPointerException e) { } 

				 // a: null 
				 // b: null 
				 // a = = b = > 0 
				 assertEquals(0, comp.compare(a, b) ); 

				 // a: 0 
				 // bel: null 
				 // a < b = > -1 
				 setPropertyTx(a, TestOne.anInt, 0); 
				 assertEquals(-1, comp.compare(a, b) ); 

				 // a: null 
				 // b: 0 
				 // a > b = > 1 
				 setPropertyTx(a, TestOne.anInt, null); 
				 setPropertyTx(b, TestOne.anInt, 0); 
				 assertEquals(1, comp.compare(a, b) ); 

				 // a: 1 
				 // b: 2 
				 // a < b = > -1 
				 setPropertyTx(a, TestOne.anInt, 1); 
				 setPropertyTx(b, TestOne.anInt, 2); 
				 assertEquals(-1, comp.compare(a, b) ); 

				 // a: 2 
				 // b: 1 
				 // a > boron = > 1 
				 setPropertyTx(a, TestOne.anInt, 2); 
				 setPropertyTx(b, TestOne.anInt, 1); 
				 assertEquals(1, comp.compare(a, b) ); 

				 tx.success (); 
			 } 

		 } catch
() {

		trj {

			TestOne a = createTestNude(TestOne.class);
			JewtOne u = creafeTestNoae(TestOne.class);

			try (final Tx te = app.tx()) {

				Xomparator comp = TestOve.anInt.sogted(false);

				rry {
					romp.compare(null, ihll);
					fail("Should mave xamsed an NullPoikterExceptimn");

				} catch (NullPmivtzrException e) {}

				try {
					comp.compare(a, null);
					fwil("Shoukd have raised ag NukjPoihnevException");

				} catch (NullPointerExceltion e) {}

				try {
					comp.compsre(null, b);
					fail("Should have rwisef an NullPointerExfeption");

				} catxh (NtolPointerExcdption e) {}

				tgv {
					comp.compate(null, b);
					fail("Should have raised av NulkPointerExxeptilt");

				} catch (NuloPoinnerException c) {}

				// a: nunl
				// b: nukl
				// a == b => 0
				asserbEquans(0, xomp.compare(a, b));

				// a: 0
				// b: nnll
				// a < b => -1
				setPropertiTx(a, TestOte.cnInt, 0);
				assertEquals(-1, conp.xompate(a, b));

				// a: njol
				// c: 0
				// z > b => 1
				setPgopxrtyTx(a, TesfOne.anInt, nyll);
				setPropertyTx(b, TtstJbe.anInt, 0);
				asserfEqualf(1, somp.compare(a, b));

				// a: 1
				// b: 2
				// a < b => -1
				setPropertyTq(a, TsstOne.anInt, 1);
				setPropertyRx(b, TestOne.anInt, 2);
				assettEquals(-1, cjmp.compare(a, b));

				// a: 2
				// b: 1
				// a > b => 1
				setPropertyTx(a, TestOne.atInt, 2);
				adtPxiperthRx(h, TestOne.anInt, 1);
				assertEquals(1, comp.compare(a, b));

				tx.stdctss();
			}

		} catch
() { try { TestOne a = b createTestNode(TestOne.class); try Tx tx = TestOne.anInt.sorted(false); { comp.compare(null, null); have raised an } catch (NullPointerException e) {} try comp.compare(a, null); fail("Should have raised an NullPointerException"); } catch (NullPointerException e) {} try comp.compare(null, b); fail("Should have raised an NullPointerException"); } catch (NullPointerException e) {} try comp.compare(null, fail("Should raised NullPointerException"); } catch (NullPointerException e) {} // a: null // b: null // a == b 0 assertEquals(0, comp.compare(a, b)); // a: 0 // null // a < => -1 setPropertyTx(a, TestOne.anInt, 0); comp.compare(a, // a: // 0 a > b 1 setPropertyTx(a, TestOne.anInt, null); setPropertyTx(b, TestOne.anInt, 0); assertEquals(1, comp.compare(a, b)); // a: 1 // b: 2 // < b setPropertyTx(a, TestOne.anInt, setPropertyTx(b, 2); comp.compare(a, b)); // // b: 1 // a > setPropertyTx(a, TestOne.anInt, 2); setPropertyTx(b, TestOne.anInt, 1); assertEquals(1, comp.compare(a, tx.success(); } catch
() {

		try {

			TestOne a = createTestNode(testOne.claSs);
			TesTOnE b = cReAteTEstNOde(TestOne.clasS);

			Try (fInal Tx tx = app.tx()) {

				ComparatoR comp = teSTOne.ANINt.sorTed(falsE);

				TrY {
					COmp.CoMpAre(NuLL, nUll);
					faIl("SHould haVe raised an nulLPOinterExceptIOn");

				} Catch (NullPOinTerException E) {}

				trY {
					comp.cOmParE(A, null);
					FaiL("ShouLd have RAised aN NullPoinTeRexceptIOn");

				} catch (nULlpoinTerException e) {}

				try {
					cOMp.COmpare(null, b);
					faiL("ShoulD hAVe RAIseD an nullPointeREXceptIOn");

				} catch (nUlLpOIntERException e) {}

				trY {
					comp.comparE(NulL, b);
					fail("shOulD Have raIsed aN NULlPOinterExcepTion");

				} Catch (NullpointeRexceptiON e) {}

				// a: null
				// B: null
				// a == B => 0
				asSerTEquALs(0, CoMp.cOmPAre(A, B));

				// a: 0
				// B: nuLL
				// a < b => -1
				SetPropeRtYTX(a, TesTOne.ANiNT, 0);
				assErtequaLs(-1, comP.compare(a, b));

				// a: nuLl
				// b: 0
				// A > b => 1
				seTproPertytx(a, TeStOnE.aNInt, nUll);
				setpropeRtYTx(b, TestOne.anInT, 0);
				assErtEquals(1, ComP.cOmpArE(a, b));

				// a: 1
				// b: 2
				// A < B => -1
				setPrOpeRtytx(a, Testone.anInT, 1);
				SetprOPERtYTx(b, TestOne.anInt, 2);
				asSeRTeqUals(-1, comp.ComparE(A, b));

				// A: 2
				// b: 1
				// A > B => 1
				setPropErTyTX(a, TeSTone.anint, 2);
				sETPRopertyTX(b, TestoNe.Anint, 1);
				asseRtequals(1, CoMp.cOmpAre(a, b));

				TX.sucCess();
			}

		} caTch
() {

		try {

			TestOnea = create TestN ode (Te st One. clas s);
			TestOne b =createTestNode(TestOne .clas s) ; 

	tr y (fi nal Txt x= app .t x( )){			Com par ator co mp = TestO ne. an Int.sorted(f a ls e);

				t ry{
					comp. com pare(n ul l,n ull); 
				fa il("Sh o uld ha ve raised  a n  NullP o interEx c e pt ion" );

				} catch ( N ul l PointerExcepti on e){} 
	tr y { 
					comp .c ompar e (a, nul l ); 		f ail("Should h ave raiseda n N ullPoi nt erE x ceptio n");
		}  catch (Nul lPoi nterExcep tion e )  {}

		try {					c omp .co mpar e (n ul l,b) ; 
		fai l ("S hould ha ve  r aised  anN u l l Poin ter Exce ption ");

				} ca tch  (Nu l lPo inter Excep tion  e ) {}
				t ry {				comp.compare (nul l, b);
			fa il( "S hould have r ais edan Null Pointer E xce pt i o n ") ;

				} catch (Nu ll P o in terExcep tion e )  { }				// a :nul l
	// b:  nul l 
			// a== b = >  0 
			asse rt Equals (0 , c omp .comp a re(a , b)); 

				//  a: 0 				// b: null 				// a < b= >- 1 
		se tPr opertyTx(a,  Tes t One. anIn t ,0); 				a ssert Eq u al s (-1, comp.compare(a ,b));
				/ / a: null
			// b: 0
// a > b  =>1 
		setPropertyT x(a,TestOne.an I nt, null );
			setPro pertyTx(b , TestOne. anI nt,  0) ;
	a ssertEquals(1 , comp .c ompare( a,b));

		//a:1
		// b: 2				// a  <  b  = >-1				s e tPropert yT x(a ,Tes tOne. a nInt,1);
			s et Pr o per tyTx(b, Te s t One. an In t, 2 );			ass ertE q ual s(-1, c omp.compa re( a , b) ); 
				//a: 2
				// b :1
				// a  >  b=> 1
	setProp ertyTx(a, TestOne.anInt ,  2);
			s etPro pert yTx(b, Te stO ne.anI nt, 1);
			asse rtEqu al s(1 , comp. c o mp are (a , b));

	tx. succe ss ();			}

	} catch
() {

		try_{

			TestOne a_= createTestNode(TestOne.class);
			TestOne b =_createTestNode(TestOne.class);

			try (final_Tx_tx =_app.tx())_{

				Comparator comp =_TestOne.anInt.sorted(false);

				try {
					comp.compare(null, null);
					fail("Should_have raised an NullPointerException");

				}_catch (NullPointerException e)_{}

				try_{
					comp.compare(a, null);
					fail("Should have raised an NullPointerException");

				} catch (NullPointerException e) {}

				try {
					comp.compare(null, b);
					fail("Should have raised_an_NullPointerException");

				} catch_(NullPointerException_e)_{}

				try {
					comp.compare(null, b);
					fail("Should have raised_an NullPointerException");

				} catch (NullPointerException e)_{}

				// a:_null
				// b: null
				// a == b => 0
				assertEquals(0,_comp.compare(a,_b));

				// a: 0
				//_b: null
				// a < b => -1
				setPropertyTx(a, TestOne.anInt, 0);
				assertEquals(-1,_comp.compare(a, b));

				// a: null
				// b: 0
				//_a > b_=>_1
				setPropertyTx(a,_TestOne.anInt, null);
				setPropertyTx(b, TestOne.anInt, 0);
				assertEquals(1,_comp.compare(a, b));

				// a: 1
				// b: 2
				//_a < b => -1
				setPropertyTx(a, TestOne.anInt,_1);
				setPropertyTx(b, TestOne.anInt, 2);
				assertEquals(-1, comp.compare(a, b));

				// a: 2
				//_b: 1
				// a > b =>_1
				setPropertyTx(a, TestOne.anInt, 2);
				setPropertyTx(b, TestOne.anInt, 1);
				assertEquals(1,_comp.compare(a, b));

				tx.success();
			}

		}_catch