@Test(groups = { "unit" }, dataProvider = "paramProvider")

public void compare(String str1, String str2, int expectedCompare) {
    StringPartitionKeyComponent spkc1 = new StringPartitionKeyComponent(str1);
    StringPartitionKeyComponent spkc2 = new StringPartitionKeyComponent(str2);
    assertThat(Integer.signum(spkc1.CompareTo(spkc2))).isEqualTo(Integer.signum(expectedCompare));
}