The test result should show only one black rect border. It should not paint any content in the rect because registerPaint will be called twice and the inputArguments will return two different strings, that will throw an exception and paint won't be executed.