@Test
public void testStringEndsWith() {

    Attribute<String, String> stringIdentity = new SelfAttribute<String>(String.class, "identity");
    assertTrue(endsWith(stringIdentity, "TEST").matches("THIS IS A TEST", noQueryOptions()));
    assertFalse(endsWith(stringIdentity, "THIS").matches("THIS IS A TEST", noQueryOptions()));
    assertFalse(endsWith(stringIdentity, "TES").matches("THIS IS A TEST", noQueryOptions()));
    assertTrue(endsWith(stringIdentity, "").matches("THIS IS A TEST", noQueryOptions()));
    assertTrue(endsWith(stringIdentity, "").matches("", noQueryOptions()));
    assertFalse(endsWith(stringIdentity, "TEST").matches("", noQueryOptions()));
}