expectException(UnsupportedTypeException::class); (new WriterFactory())->create('unsupportedType'); } }