BALANCESHARDUNIQUE works fine in 5.0; it correctly updates the cluster state so I left it in 5.0. It may not be useful since the use-case I intended it for is REBALANCELEADERS, but it's still there.
REBALANCELEADERS OTOH, was pulled from 5.0.
I put REBALANCELEADERS back in to trunk last night (along with a bad svn EOL style, siiiiggggh) and I'll back-port after 5.0 is cut.
Anshum Gupta There are a bunch of tests in TestReplicaProperties that might be be useful models. Those tests do the functionality pretty thoroughly, maybe it would be enough for the SolrJ tests to do more minimal testing? Also ReplicaPropertiesBase has some helper methods that you might find useful.