### Question:
UsersService { public Optional<User> get(Long id) { User found = em.find(User.class, id); return found != null ? Optional.of(found) : Optional.empty(); }  User isValid(String username, String password); Set<User> getAll(); void add(@Valid User newUser); boolean update(User updated); void remove(Long id); Optional<User> get(Long id); List<String> getNames();  }### Answer:
@Test public void testGetUsers(@ArquillianResource URL resource) throws Exception { URL obj = new URL(resource, "resources/users"); when().get(obj.toURI()).then() .statusCode(200); }