@Test
public void testChannelBadPeerCollectionEmpty() throws Exception {

    thrown.expect(InvalidArgumentException.class);
    thrown.expectMessage("Collection of peers is empty.");
    final Channel channel = createRunningChannel(null);
    channel.sendUpgradeProposal(hfclient.newUpgradeProposalRequest(),
            Arrays.asList((Peer[]) new Peer[] {})
    );
}