@Test
public void testGetDescriptorValues() {

    final Repository mockRepository = mock(Repository.class);
    final String key = "SOME_KEY";
    final Value[] values = new Value[]{new SimpleValueFactory().createValue("SOME_VALUE")};
    when(mockRepository.getDescriptorValues(anyString())).thenReturn(null);
    when(mockRepository.getDescriptorValues(key)).thenReturn(values);
    final RepositoryFacade facade = getFacade(mockRepository);
    assertSame("should be same values",
            values, facade.getDescriptorValues(key));
    assertNull("should be null",
            facade.getDescriptorValues(""));
    final RepositoryFacade facadeNull = getFacade(null);
    assertNull("should be null for null",
            facadeNull.getDescriptorValues(key));
}