* @throws Exception
*/
@Test
public void copyRBForExclude() throws Exception {
MockServletContext servletContext = new MockServletContext();
MockHttpServletRequest src = new MockHttpServletRequest(servletContext);
src.setAttribute("aaa", "111");
src.setAttribute("ccc", "222");
DestRB dest = new DestRB();
BeanUtil.copy(src, dest, new CopyOptions().exclude("ccc"));
assertThat(dest.aaa, is("111"));
assertThat(dest.ccc, is(nullValue()));
}