public function testBuild()
{
$platformData = ['abc' => 'def', 'match' => 'test*', 'lite' => true, 'standard' => true];
$json = [];
$platformName = 'Test';
$deviceData = ['Device_Name' => 'TestDevice'];
$deviceMock = $this->getMockBuilder(\Browscap\Data\Device::class)->disableOriginalConstructor()->setMethods(['getProperties'])->getMock();
$deviceMock->expects(self::any())->method('getProperties')->will(self::returnValue($deviceData));
$collection = $this->getMockBuilder(\Browscap\Data\DataCollection::class)->disableOriginalConstructor()->setMethods(['getDevice'])->getMock();
$collection->expects(self::any())->method('getDevice')->will(self::returnValue($deviceMock));
self::assertInstanceOf('\\Browscap\\Data\\Platform', $this->object->build($platformData, $json, $platformName, $collection));
}