assertEquals( a.getJSP(), b.getJSP() );
assertEquals( a.getURLPattern(), b.getURLPattern() );
assertEquals( a.getContentTemplate(), b.getContentTemplate() );
assertNotNull( b.getTarget() );
assertNotNull( b.requiredPermission() );
assertEquals( new GroupPermission( "*:Test", "view" ), b.requiredPermission() );
assertEquals( group, b.getTarget() );
// Do the same with edit command
a = GroupCommand.EDIT_GROUP;
b = a.targetedCommand( group );
assertNotSame( a, b );
assertNotNull( b.getTarget() );
assertNotNull( b.requiredPermission() );
assertEquals( new GroupPermission( "*:Test", "edit" ), b.requiredPermission() );
assertEquals( group, b.getTarget() );
// Do the same with delete command
a = GroupCommand.DELETE_GROUP;
b = a.targetedCommand( group );
assertNotSame( a, b );
assertNotNull( b.getTarget() );
assertNotNull( b.requiredPermission() );
assertEquals( new GroupPermission( "*:Test", "delete" ), b.requiredPermission() );
assertEquals( group, b.getTarget() );
}