@Test
public void testSetResultMessages_BusinessException_flashMap_is_notnull() {

    FlashMap flashMap = new FlashMap();
    mockRequest.setAttribute(DispatcherServlet.OUTPUT_FLASH_MAP_ATTRIBUTE,
            flashMap);
    ResultMessages resultMessages = ResultMessages.error().add("code01");
    BusinessException occurException = new BusinessException(resultMessages);
    testTarget.setResultMessages(occurException, mockRequest);
    assertThat(resultMessages, is(flashMap.get(
            ResultMessages.DEFAULT_MESSAGES_ATTRIBUTE_NAME)));
}