@Test
void setProperties() {

    Properties properties = new Properties();
    properties.setProperty("@page", "com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor");
    properties.setProperty("page:maxLimit", "10");
    properties.setProperty("page:dbType", "h2");
    MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
    interceptor.setProperties(properties);
    List<InnerInterceptor> interceptors = interceptor.getInterceptors();
    assertThat(interceptors).isNotEmpty();
    assertThat(interceptors.size()).isEqualTo(1);
    InnerInterceptor page = interceptors.get(0);
    assertThat(page).isInstanceOf(PaginationInnerInterceptor.class);
    PaginationInnerInterceptor pii = (PaginationInnerInterceptor) page;
    assertThat(pii.getMaxLimit()).isEqualTo(10);
    assertThat(pii.getDbType()).isEqualTo(DbType.H2);
}