$m = new Model(...);

$repo = new InMemoryRepo([ $m ]);

$this->assertSame($m, $repo->find(...));