@Test
public void testGetPropertyAsTypeStringClassOfT() {

    String prop = configurationService.getPropertyAsType("service.name", String.class);
    assertNotNull(prop);
    assertEquals("DSpace", prop);
    String[] array = configurationService.getPropertyAsType("sample.array", String[].class);
    assertNotNull(array);
    assertEquals("itemA", array[0]);
    assertEquals("itemB", array[1]);
    assertEquals("itemC", array[2]);
    Integer number = configurationService.getPropertyAsType("sample.number", Integer.class);
    assertNotNull(number);
    assertEquals(new Integer(123), number);
    Boolean bool = configurationService.getPropertyAsType("sample.boolean", Boolean.class);
    assertNotNull(bool);
    assertEquals(Boolean.TRUE, bool);
    Boolean bool2 = configurationService.getPropertyAsType("INVALID.PROPERTY", Boolean.class);
    assertNotNull(bool2);
    assertEquals(Boolean.FALSE, bool2);
    boolean bool3 = configurationService.getPropertyAsType("INVALID.PROPERTY", boolean.class);
    assertNotNull(bool3);
    assertEquals(false, bool3);
    assertEquals(123, (int) configurationService.getPropertyAsType("sample.number", int.class) );
    assertEquals(true, (boolean) configurationService.getPropertyAsType("sample.boolean", boolean.class) );
    prop = configurationService.getPropertyAsType("XXXXX", String.class);
    assertNull(prop);
    prop = null;
}