Common suffix between strings

In reverse of finding the common prefix of two strings this example will find the longest suffix of two strings.

Google Guava

@Test
public void find_common_suffix_between_strings_guava (){

    String phrase1 = "fix";
    String phrase2 = "six";

    String suffix = Strings.commonSuffix(phrase1, phrase2);

    assertEquals("ix", suffix);
}