@BeforeClass
  public static void setUp() throws Exception {

    // the first three notes are known
    final NotesDAO notesDAO = NotesDAO.getInstance();
    notesDAO.clearNotes();

    Note note = new Note();
    note.setBody(TEST_BODY + '1');
    notesDAO.addNote(note);

    note = new Note();
    note.setBody(TEST_BODY + '2');
    notesDAO.addNote(note);

    note = new Note();
    note.setBody(TEST_BODY + '3');
    notesDAO.addNote(note);

    // start the server
    server = Main.startServer();
    // create the client
    Client c = ClientBuilder.newClient();

    target = c.target(Main.BASE_URI);
  }
  @Override
  protected void setUp() throws Exception {
    super.setUp();

    // start the Grizzly2 web container
    httpServer = Main.startServer();

    // create the client
    Client c = Client.create();
    r = c.resource(Main.BASE_URI);
  }
  @Before
  public void setUp() throws Exception {
    // start the server
    server = Main.startServer();
    // create the client
    Client c = ClientBuilder.newClient();

    // uncomment the following line if you want to enable
    // support for JSON in the client (you also have to uncomment
    // dependency on jersey-media-json module in pom.xml and Main.startServer())
    // --
    // c.configuration().enable(new org.glassfish.jersey.media.json.JsonJaxbFeature());

    target = c.target(Main.getBaseURI());
  }