public void buildTrackForTest()
   {
      if (!built)
      {
         // Create
         Record r = new Record();
         r.setAuthor("fake-author");
         r.setCategory(new Category("fake-cat", 12));
         r.setCatNo("fake-cat-no");
         r.setDate(new Date());
         r.setDiscogsNum(12);
         r.setFormat(new Format("fake-format", "12"));
         r.setLabel(new Label("fake-label"));
         r.setNotes("fake-notes");
         r.setOwner(1);
         r.setPrice(12.65);
         r.setReleaseMonth(12);
         r.setReleaseType(1);
         r.setTitle("fake-tracks-testing");
         r.setYear(2000);

         try
         {
            r.save();

            Artist g1 = new Artist("DonkeyManTester");
            Artist g2 = new Artist("Goat ManTester");
            Groop g3 = new Groop("AnimalsTester");
            LineUp lu = new LineUp(g3);
            lu.addArtist(g1);
            lu.addArtist(g2);

            Artist p1 = new Artist("Bunny ProducerTester");

            Track t1 = new Track(1);
            t1.setLengthInSeconds(100);
            t1.setTitle("DonkeyTester");
            t1.addLineUp(lu);
            t1.addPersonnel(p1);
            t1.setFormTrackNumber(1);

            Track t2 = new Track(2);
            t2.setLengthInSeconds(120);
            t2.setTitle("HelpTester");
            t2.addLineUp(lu);
            t2.addPersonnel(p1);
            t2.setFormTrackNumber(1);

            // This should cause the record to update
            r.addTrack(t1);
            r.addTrack(t2);
            r.save();

            Record r2 = GetRecords.create().getRecords("fake-tracks-testing").get(0);
            assert (r2.getTracks().iterator().next().getLineUps().size() == 1);

         }
         catch (SQLException e)
         {
            System.err.println("Exception");
            e.printStackTrace();
            assert (false);
         }
         built = true;
      }
   }