    @Test
    public void badBundleOnStart() {

        // see https://github.com/yigit/android-priority-jobqueue/issues/254
        JobParameters params = mock(JobParameters.class);
        PersistableBundle badBundle = mock(PersistableBundle.class);
        when(badBundle.getString(anyString(), anyString())).thenThrow(new NullPointerException());
        when(badBundle.getString(anyString())).thenThrow(new NullPointerException());
        assertThat(fwScheduler.onStartJob(params), is(false));
    }