    @Test
    public void parseAndSetExtra_int() {

        IntentTag.parseAndSetExtra(mBundle, "zero", "int(0)");
        verify(mBundle).putInt("zero", 0);

        IntentTag.parseAndSetExtra(mBundle, "one", "int(1)");
        verify(mBundle).putInt("one", 1);

        IntentTag.parseAndSetExtra(mBundle, "neg_one", "int(-1)");
        verify(mBundle).putInt("neg_one", -1);

        try {
            IntentTag.parseAndSetExtra(mBundle, "overflow", "int(5000000000)");
        } catch (BadParameterException e) {
            assertTrue(e.getCause() instanceof NumberFormatException);
        }
    }