public void testCommandPatternJavaWithDefinedCommandsWithDebug() {
String specifiedPageText = "!define COMMAND_PATTERN {java -specialParam -cp %p %m}\n"
+ "!define REMOTE_DEBUG_COMMAND {java -remoteDebug -cp %p %m}";
WikiPage specifiedPage = makeTestPage(specifiedPageText);
Descriptor descriptor = new WikiPageDescriptor(specifiedPage, false, true, "");
MockClientBuilder clientBuilder = new MockClientBuilder(descriptor);
assertEquals("java -remoteDebug -cp %p %m", join(clientBuilder.getCommandPattern()));
}