@Test
public void shouldReturnTrueWhenAllDependenciesForProductExists() {

    // given
    Map<String, String> productsNameMap = new HashMap<String, String>();
    productsNameMap.put("tomcat-6", "");
    productsNameMap.put("mysql", "");
    productsNameMap.put("mongos", "");
    productsNameMap.put("mongoshard", "");
    productsNameMap.put("mongoconfig", "");
    List<String> contextBrokerDependencies = new ArrayList<String>(2);
    contextBrokerDependencies.add("mongos");
    contextBrokerDependencies.add("mongoshard");
    contextBrokerDependencies.add("mongoconfig");
    // when
    boolean result = tierResourceValidator.checkTierProductsInDependencyList(contextBrokerDependencies,
            productsNameMap);
    // then
    assertTrue(result);
}