@Test
public void testIsSingleValueDescriptor() {

    final Repository mockRepository = mock(Repository.class);
    when(mockRepository.isSingleValueDescriptor(anyString())).thenReturn(false);
    when(mockRepository.isSingleValueDescriptor("SOME_KEY")).thenReturn(true);
    final RepositoryFacade facade = getFacade(mockRepository);
    assertTrue("SOME_KEY should be true",
            facade.isSingleValueDescriptor("SOME_KEY"));
    assertFalse("anyString key should be false",
            facade.isSingleValueDescriptor("ANOTHER_KEY"));
    final RepositoryFacade facadeNull = getFacade(null);
    assertFalse("null should return false",
            facadeNull.isSingleValueDescriptor("SOME_KEY"));
}