@Test
public void waitToGetSilver() throws Exception {

    FreeSilverProtocol protocol = new FreeSilverProtocol(initSession());
    FreeSilverProtocol.CurrentSilverTaskInfo taskInfo = protocol.getCurrentFreeSilverStatus();
    if (!taskInfo.hasRemaining()) fail();
    FreeSilverProtocol.GetSilverInfo info = null;
    do {
        try {
            info = protocol.waitToGetSilver();
            System.out.println(info);
        } catch (Exception e) {
            //if (e.getMessage().contains("FINISHED"))
            //return;
            e.printStackTrace();
        }
    } while (info == null || !info.isEnd());
}