@Test
public void testGetErrorMessage() throws Exception {

    // Min
    final Validation minValidation = Length.min(2);
    final String minValidationErrorMessage = minValidation.getErrorMessage(mActivity);
    assertNotNull(minValidationErrorMessage);
    assertTrue(minValidationErrorMessage.contains("2"));
    // Max
    final Validation maxValidation = Length.max(5);
    final String maxValidationErrorMessage = maxValidation.getErrorMessage(mActivity);
    assertNotNull(maxValidationErrorMessage);
    assertTrue(maxValidationErrorMessage.contains("5"));
    // Range
    final Validation rangeValidation = Length.range(2, 5);
    final String rangeValidationErrorMessage = rangeValidation.getErrorMessage(mActivity);
    assertNotNull(rangeValidationErrorMessage);
    assertTrue(rangeValidationErrorMessage.contains("2"));
    assertTrue(rangeValidationErrorMessage.contains("5"));
}