### Question:
IabResult { public String getLocalizedMessage(Resources resources) { return resources.getString(mResponse.stringId); } IabResult(int code, String message);  IabResult(Response response);  IabResult(Response response, String message); Response getResponse(); String getLocalizedMessage(Resources resources); String getMessage(); boolean isSuccess(); boolean isFailure(); String toString(); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void shouldGetLocalizedMessage() throws Exception { assertThat(new IabResult(Response.BILLING_UNAVAILABLE, "FAIL").getLocalizedMessage( Robolectric.application.getResources())).isEqualTo("Billing Unavailable"); }