public function testHasManyAssociation()
{
$user = $this->usersTable->get(1);
$this->usersTable->delete($user);
$count = $this->postsTable->find()->where(['user_id' => 1])->count();
$this->assertEquals(0, $count);
$count = $this->postsTable->find('all', ['withDeleted'])->where(['user_id' => 1])->count();
$this->assertEquals(2, $count);
}