### Question:
IabResult { public boolean isSuccess() { return mResponse == Response.OK; } 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 testIsSuccess() { assertThat(new IabResult(0, "OK").isSuccess()).isTrue(); assertThat(new IabResult(0, "OK").isFailure()).isFalse(); assertThat(new IabResult(1, "FAIL").isSuccess()).isFalse(); assertThat(new IabResult(1, "FAIL").isFailure()).isTrue(); }