@Test
public void testGetPropertyAsTypeStringT() {

    String prop = configurationService.getPropertyAsType("service.name", "DeeSpace");
    assertNotNull(prop);
    assertEquals("DSpace", prop);
    String[] array = configurationService.getPropertyAsType("sample.array", new String[] {"A","B"});
    assertNotNull(array);
    assertEquals("itemA", array[0]);
    assertEquals("itemB", array[1]);
    assertEquals("itemC", array[2]);
    Integer number = configurationService.getPropertyAsType("sample.number", new Integer(12345));
    assertNotNull(number);
    assertEquals(new Integer(123), number);
    Boolean bool = configurationService.getPropertyAsType("sample.boolean", Boolean.FALSE);
    assertNotNull(bool);
    assertEquals(Boolean.TRUE, bool);
    boolean b = configurationService.getPropertyAsType("sample.boolean", false);
    assertTrue(b);
    prop = configurationService.getPropertyAsType("XXXXX", "XXX");
    assertEquals("XXX", prop);
    prop = null;
}