@Test
public void testGetConnectorAttributes_shouldReturnConnectorAttributes() throws Exception {

    //get attributes from user but without reading from the input
    Map<String, String> attributes = new HashMap<String, String>();
    attributes.put("attr1", "val1");
    attributes.put("attr2", "val2");
    AttributeDefinition atr1 = createAttributeMock("attr1", "1");
    AttributeDefinition atr2 = createAttributeMock("attr2", "2");
    List<AttributeDefinition> attributeDefinitions = new ArrayList<AttributeDefinition>();
    attributeDefinitions.add(atr1);
    attributeDefinitions.add(atr2);
    Map<String, String> connectorAttributes =
        serviceHelper.getConnectorAttributes(attributeDefinitions, attributes);
    assertTrue(connectorAttributes.get("name1").equals("val1"));
    assertTrue(connectorAttributes.get("name2").equals("val2"));
}