### Question:
EmployeeResource { @GET @Produces("application/xml") public Employee[] get() { return em.createNamedQuery("Employee.findAll", Employee.class).getResultList().toArray(new Employee[0]); }  @GET @Produces("application/xml") Employee[] get();  }### Answer:
@Test public void testGet() { Employee[] list = target .request(MediaType.APPLICATION_XML) .get(Employee[].class); assertNotNull(list); assertEquals(8, list.length); assertFalse(list[0].equals(new Employee("Penny"))); assertFalse(list[1].equals(new Employee("Sheldon"))); assertFalse(list[2].equals(new Employee("Amy"))); assertFalse(list[3].equals(new Employee("Leonard"))); assertFalse(list[4].equals(new Employee("Bernadette"))); assertFalse(list[5].equals(new Employee("Raj"))); assertFalse(list[6].equals(new Employee("Howard"))); assertFalse(list[7].equals(new Employee("Priya"))); }