@Test
  public void resourceReadTest() throws Exception {

    Client client = Client.create();
    WebResource webResource = client.resource(getBaseURI());
    Customer customer1 =
        webResource
            .path("customers")
            .path("1")
            .accept(MediaType.APPLICATION_XML_TYPE)
            .get(Customer.class);
    assertEquals("Rafael", customer1.getFirstName());
    assertEquals("Sobek", customer1.getSecondName());
    assertEquals("Karlsruhe", customer1.getCity());

    Customer customer2 =
        webResource
            .path("customers")
            .path("2")
            .accept(MediaType.APPLICATION_XML_TYPE)
            .get(Customer.class);
    assertEquals("Peter", customer2.getFirstName());

    // DocumentBuilder documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
    // Document document = documentBuilder.parse(customerData);
  }
 @Test
 public void simpleRestProviderWhitboardTest() throws Exception {
   Bundle bundle = getBundleForSymbolicName("RestProviderTestBundle");
   assertEquals(Bundle.ACTIVE, bundle.getState());
   bundle.stop();
   bundle.start();
 }
 @Ignore
 @Test
 public void massiveDynamicReadLoadTest() throws Exception {
   for (int i = 0; i < 10; i++) {
     resourceReadTest();
     Bundle bundle = getBundleForSymbolicName("RestProviderTestBundle");
     assertEquals(Bundle.ACTIVE, waitForBundle(bundle));
     bundle.stop();
     assertFalse(checkRestServiceRunning(false));
     bundle.start();
     logger.info("Test " + i + ": finished");
   }
 }