@Test
public void testGetErrorMessage() throws Exception {

    final Validation validation = InRange.build(2, 4);
    final String errorMessage = validation.getErrorMessage(mActivity);
    assertNotNull(errorMessage);
    assertTrue(errorMessage.contains(Integer.toString(2)));
    assertTrue(errorMessage.contains(Integer.toString(4)));
}