@Override
    public void removeMappingEntriesByAppId(Type type, ApplicationId appId) {
        removeMappingEntries(type, Iterables.toArray(
                    getMappingEntriesByAppId(type, appId), MappingEntry.class));
    }
@Test
    public void removeMappingEntriesByAppId() {
        addMapping(MAP_DATABASE, 1);
        addMapping(MAP_DATABASE, 2);

        adminService.removeMappingEntriesByAppId(MAP_DATABASE, appId);

        assertTrue("should not have any mappings",
                Lists.newLinkedList(
                        service.getMappingEntriesByAppId(MAP_DATABASE, appId)).size() == 0);
    }