@@ -0,0 +1,1406 @@
+package router.client;%0A%0Aimport javax.annotation.Nonnull;%0Aimport org.powermock.api.mockito.PowerMockito;%0Aimport org.powermock.core.classloader.annotations.PrepareForTest;%0Aimport org.powermock.modules.testng.PowerMockObjectFactory;%0Aimport org.testng.IObjectFactory;%0Aimport org.testng.annotations.DataProvider;%0Aimport org.testng.annotations.ObjectFactory;%0Aimport org.testng.annotations.Test;%0Aimport static org.mockito.Mockito.*;%0Aimport static org.testng.Assert.*;%0A%0A@PrepareForTest( %7B RouteDefinition.class, RegExp.class %7D )%0Apublic class RouteDefinitionTest%0A%7B%0A  @ObjectFactory%0A  public IObjectFactory getObjectFactory()%0A  %7B%0A    return new PowerMockObjectFactory();%0A  %7D%0A%0A  @DataProvider( name = %22pathToRegex%22 )%0A  public static Object%5B%5D%5B%5D pathToRegexData()%0A  %7B%0A    return new Object%5B%5D%5B%5D%7B%0A      %7B %22X%22, %22%5EX$%22 %7D,%0A      %7B %22/abc/1!%22, %22%5E%5C%5C/abc%5C%5C/1!$%22 %7D,%0A      %7B %22/+$#-?()%5B%5D%7B%7D.*%5C%5C%22, %22%5E%5C%5C/%5C%5C+%5C%5C$#%5C%5C-%5C%5C?%5C%5C(%5C%5C)%5C%5C%5B%5C%5C%5D%5C%5C%7B%5C%5C%7D%5C%5C.%5C%5C*%5C%5C%5C%5C$%22 %7D,%0A      %7D;%0A  %7D%0A%0A  @Test( dataProvider = %22pathToRegex%22 )%0A  public void pathToRegex( @Nonnull final String path, @Nonnull final String regex )%0A    throws Exception%0A  %7B%0A    final RegExp mock = PowerMockito.mock( RegExp.class );%0A    PowerMockito.whenNew( RegExp.class ).withArguments( eq( regex ) ).thenReturn( mock );%0A%0A    final RegExp re = RouteDefinition.pathToRegex( path );%0A%0A    assertEquals( re, mock );%0A%0A    PowerMockito.verifyNew( RegExp.class ).withArguments( eq( regex ) );%0A  %7D%0A%7D%0A

Introduce a very basic test