@Override
  public Map<String, Object> getUserProperties() {
    if (principal instanceof KsqlPrincipal) {
      return ((KsqlPrincipal) principal).getUserProperties();
    } else {
      return Collections.emptyMap();
    }
  }
@Test
  public void shouldReturnUserProperties() {
    assertThat(wrappedKsqlPrincipal.getUserProperties(), is(USER_PROPERTIES));
    assertThat(wrappedOtherPrincipal.getUserProperties(), is(Collections.emptyMap()));
  }