package router.client.location;

public class TestRegExp
  extends RegExp
{
  private String[] _results;

  public TestRegExp()
  {
    super( new Object() );
  }

  public void setResults( final String[] results )
  {
    _results = results;
  }

  @Override
  public String[] exec( final Object str )
  {
    return _results;
  }
}

@@ -26,16 +26,50 @@
 ation;%0A%0A
+import javax.annotation.Nonnull;%0A%0A
 public c
@@ -133,12 +133,135 @@
 sult
+Group
 s;%0A%0A
+  public TestRegExp( @Nonnull final String%5B%5D resultGroups )%0A  %7B%0A    this();%0A    setResultGroups( resultGroups );%0A  %7D%0A%0A
   pu
@@ -337,16 +337,21 @@
 etResult
+Group
 s( final
@@ -366,16 +366,21 @@
 %5D result
+Group
 s )%0A  %7B%0A
@@ -390,16 +390,21 @@
  _result
+Group
 s = resu
@@ -401,24 +401,29 @@
 ups = result
+Group
 s;%0A  %7D%0A%0A  @O
@@ -495,16 +495,21 @@
  _result
+Group
 s;%0A  %7D%0A%7D

Rename the match results so the intent is clearer