you might be surprised to learn that the tiny pekingese is one of the oldest dog breeds and is closest in genetic structure to the wolf -- not the more obvious german shepherd , which is related to the mastiff rather than to the ancient herding breeds like the pekingese .