@Test
@SuppressWarnings("unchecked")
public void getPackageParentRuleNames() {

    final Set<String> parentRuleNames = new HashSet<>();
    parentRuleNames.add("parentRule1");
    parentRuleNames.add("parentRule2");
    final ParameterizedCommand<Collection<String>> parentRuleNamesCommand = mock(ParameterizedCommand.class);
    when(ruleNameService.getRuleNames(any(ObservablePath.class),
                                      any(String.class))).thenReturn(parentRuleNames);
    dtPresenter.getPackageParentRuleNames(parentRuleNamesCommand);
    verify(parentRuleNamesCommand,
           times(1)).execute(eq(parentRuleNames));
}