@Test(expected = U2fBadConfigurationException.class)
public void defaultConstructedU2FstartRegistrationShouldRefuseInvalidAppId() throws U2fBadInputException, U2fBadConfigurationException {

    DeviceRegistration deviceRegistration = new DeviceRegistration(KEY_HANDLE_BASE64, USER_PUBLIC_KEY_SIGN_HEX, ATTESTATION_CERTIFICATE, 0);
    deviceRegistration.markCompromised();
    new U2F().startRegistration("example.com", ImmutableList.of(deviceRegistration));
    fail("startRegistration did not refuse an invalid app ID.");
}