public static GoogleAuthInfo parseUri(String s) throws GoogleAuthInfoException {
        Uri uri = Uri.parse(s);
        if (uri == null) {
            throw new GoogleAuthInfoException(uri, String.format("Bad URI format: %s", s));
        }
        return GoogleAuthInfo.parseUri(uri);
    }
@Test
    public void testGoogleAuthInfoEmptySecret() throws GoogleAuthInfoException {
        String uri = "otpauth://totp/test:test?secret=%s&algo=SHA1&digits=6&period=30";
        GoogleAuthInfo.parseUri(String.format(uri, "AA"));
        assertThrows(GoogleAuthInfoException.class, () -> GoogleAuthInfo.parseUri(String.format(uri, "")));
    }