* @throws Exception if occur
*/
@Test
public void spi() throws Exception {
VerifyRuleProvider provider = new SpiVerifyRuleProvider(ExcelSheetRuleProvider.class.getClassLoader());
VerifyRule rule = provider.get(SIMPLE, context(10), uri("verify/simple.xls", ":0"));
assertThat(rule, not(nullValue()));
assertThat(rule.getKey(obj(100, "a")), equalTo(rule.getKey(obj(100, "b"))));
assertThat(rule.getKey(obj(100, "a")), not(equalTo(rule.getKey(obj(200, "a")))));
assertThat(rule.verify(obj(1, "a"), obj(2, "a")), is(nullValue()));
assertThat(rule.verify(obj(1, "a"), obj(1, "b")), not(nullValue()));
}