@Test
public void testValidatePropertyTypes_objectClass() throws Exception {

    Map<String, Object> map = new HashMap<>();
    map.put(Constants.OBJECTCLASS, "test");
    Map<String, Object> config = validatePropertyTypes(map);
    assertThat(config.containsKey(Constants.OBJECTCLASS), is(true));
    assertThat(config.get(Constants.OBJECTCLASS), Is.is(new String[]{"test"}));
    map = new HashMap<>();
    map.put(Constants.OBJECTCLASS, new String[]{"test"});
    config = validatePropertyTypes(map);
    assertThat(config.get(Constants.OBJECTCLASS), Is.is(new String[]{"test"}));
    map = new HashMap<>();
    map.put(Constants.OBJECTCLASS, singletonList("test"));
    config = validatePropertyTypes(map);
    assertThat(config.get(Constants.OBJECTCLASS), Is.is(new String[]{"test"}));
}