Ensure that a certain handler is a instance of a certain table/field.
function assertInstanceHandler($handler, $table, $field, $id) {
$table_data = Views::viewsData()
->get($table);
$field_data = $table_data[$field][$id];
$this
->assertEqual($field_data['id'], $handler
->getPluginId());
}