public function testGetSubTypeField()
{
$read = $this->definitionLibrary->getSubTypeField('libraryBook', 'many', 'entity');
$expected = 'book';
$this->assertSame($expected, $read);
$read = $this->definitionLibrary->getSubTypeField('name', 'many', 'entity');
$this->assertNull($read);
$read = $this->definitionLibrary->getSubTypeField('libraryBook', 'many', 'foo');
$this->assertNull($read);
$read = $this->definitionLibrary->getSubTypeField('libraryBook', 'foo', 'entity');
$this->assertNull($read);
$read = $this->definitionLibrary->getSubTypeField('', 'many', 'entity');
$this->assertNull($read);
$read = $this->definitionLibrary->getSubTypeField(null, 'many', 'entity');
$this->assertNull($read);
}