@Test
public void testMultipleGroups() {

  String testInput = "Foobar Ipsum Lorem";
  eval.update("Foo(.*) (.*)", 0, "", testInput);
  assertTrue(eval.matches);
  assertTrue(eval.lookingAt);
  assertTrue(eval.find);
  assertEquals(3, eval.groups.length);
  assertEquals(testInput, eval.groups[0].group);
  assertEquals(0, eval.groups[0].start);
  assertEquals(testInput.length(), eval.groups[0].end);
  assertEquals("bar Ipsum", eval.groups[1].group);
  assertEquals(3, eval.groups[1].start);
  assertEquals(12, eval.groups[1].end);
  assertEquals("Lorem", eval.groups[2].group);
  assertEquals(13, eval.groups[2].start);
  assertEquals(testInput.length(), eval.groups[2].end);
}