@Test
public void registerKind() {

    String kindBefore = Utils.buildKind(ExampleServiceState.class);
    String newKind = "e";
    Utils.registerKind(ExampleServiceState.class, newKind);
    String kindAfter = Utils.buildKind(ExampleServiceState.class);
    assertEquals(newKind, kindAfter);
    Utils.registerKind(ExampleServiceState.class, kindBefore);
    kindAfter = Utils.buildKind(ExampleServiceState.class);
    assertEquals(kindBefore, kindAfter);
    Class<?> stateClass = Utils.getTypeFromKind(kindAfter);
    assertEquals(stateClass.getCanonicalName(), ExampleServiceState.class.getCanonicalName());
}