Each daimyo had his own set of laws, and a samurai's loyalty to him would be proven by him following those laws.