NannyBundle { @Nullable public String getRequestRationale() { String value = null; Bundle entity = getEntityBody(); if (entity != null) { value = entity.getString(Nanny.REQUEST_RATIONALE); if (value == null) { value = entity.getString(Nanny.REQUEST_REASON); } } return value; } NannyBundle(Intent intent);  NannyBundle(Bundle bundle); String getProtocol(); int getStatusCode(); @Nullable String getClientAddress(); @Nullable String getConnection(); @Nullable String getServer(); @Nullable Throwable getError(); @Nullable Bundle getEntityBody(); @Nullable String getSenderIdentity(); @Nullable RequestParams getRequest(); @Nullable String getRequestRationale(); String getDeepLinkTarget(); String getAckAddress();  }
@Test public void getRequestRationale_shouldTryRequeustReason_whenRequestRationaleIsNull() throws Exception { mEntityBody.putString(Nanny.REQUEST_REASON, "reason"); NannyBundle actual = new NannyBundle(mBuilder.entity(mEntityBody).build()); assertThat(actual.getRequestRationale(), is("reason")); }