@Test
public void testEvaluateGoLiveArgs_AutoSetShardCount() {

    opts.solrHomeDir = new File("/solrhome");
    opts.shardUrls = ImmutableList.<List<String>>of(ImmutableList.of("shard_a"), ImmutableList.of("shard_b"));
    opts.shards = null;
    opts.evaluateGoLiveArgs();
    assertEquals(2, (int)opts.shards);
}