CapsuleToyProtocol { public CapsuleToyInfo getCapsuleToyInfo() throws BiliLiveException { CapsuleToyInfo info = session.getHttpHelper().getBiliLiveJSON( CAPSULE_INFO_GET, CapsuleToyInfo.class, EXCEPTION_KEY); if (info.code == STATUS_NOT_LOGGED_IN) throw new NotLoggedInException(); return info; } CapsuleToyProtocol(@NotNull Session session); OpenCapsuleToyInfo openNormal(@MagicConstant(intValues = {1, 10, 100}) int count); OpenCapsuleToyInfo openColorful(@MagicConstant(intValues = {1, 10, 100}) int count); CapsuleToyInfo getCapsuleToyInfo();  }
@Test public void aGetInfo() throws Exception { System.out.println(protocol.getCapsuleToyInfo()); }