public function test_delete()
{
$repo = App::make(MatterRepository::class);
$matter = factory(Matter::class)->create();
$delete = $repo->delete($matter->id);
$this->assertEquals(1, $delete);
$this->setExpectedException(RepositoryException::class);
$repo->withoutTrashed()->get($matter->id);
}