### Question:
APIProcessConnectorDependency extends ConsoleAPI<ProcessConnectorDependencyItem> implements
        APIHasSearch<ProcessConnectorDependencyItem> { protected void checkMandatoryAttributes(final Map<String, String> filters) { if (MapUtil.isBlank(filters, ATTRIBUTE_PROCESS_ID)) { throw new APIFilterMandatoryException(ATTRIBUTE_PROCESS_ID); } if (MapUtil.isBlank(filters, ATTRIBUTE_CONNECTOR_NAME)) { throw new APIFilterMandatoryException(ATTRIBUTE_CONNECTOR_NAME); } if (MapUtil.isBlank(filters, ATTRIBUTE_CONNECTOR_VERSION)) { throw new APIFilterMandatoryException(ATTRIBUTE_CONNECTOR_VERSION); } }  @Override String defineDefaultSearchOrder(); @Override ItemSearchResult<ProcessConnectorDependencyItem> search(final int page, final int resultsByPage, final String search, final String orders,
            final Map<String, String> filters);  }### Answer:
@Test(expected = APIFilterMandatoryException.class) public void checkProcessIdIsMandatory() throws Exception { Map<String, String> filters = buildFilters(null, "aConnectorName", "aConnectorVersion"); apiProcessConnectorDependency.checkMandatoryAttributes(filters); }
@Test(expected = APIFilterMandatoryException.class) public void checkConnectorNameIsMandatory() throws Exception { Map<String, String> filters = buildFilters("1", "", "aConnectorVersion"); apiProcessConnectorDependency.checkMandatoryAttributes(filters); }
@Test(expected = APIFilterMandatoryException.class) public void checkConnectorVersionIsMandatory() throws Exception { Map<String, String> filters = buildFilters("1", "aConnectorName", ""); apiProcessConnectorDependency.checkMandatoryAttributes(filters); }
@Test public void checkMandatoryAttributesDontThrowExceptionIfAllAtributesAreSet() throws Exception { Map<String, String> filters = buildFilters("1", "aConnectorName", "aConnectorVersion"); apiProcessConnectorDependency.checkMandatoryAttributes(filters); assertTrue("no exception thrown", true); }