@Test
public void testRegisterCustomEditors01() throws Exception {

    // 前処理
    DatePropertyEditorRegistrar registrar = new DatePropertyEditorRegistrar();
    PropertyEditorRegistrar_PropertyEditorRegistryStub01 registry = new PropertyEditorRegistrar_PropertyEditorRegistryStub01();
    // テスト実施
    registrar.registerCustomEditors(registry);
    // 判定
    assertSame(Date.class, registry.clazz);
    assertSame(CustomDateEditor.class, registry.editor.getClass());
    SimpleDateFormat resultDateFormat = (SimpleDateFormat) ReflectionTestUtils
            .getField(registry.editor, "dateFormat");
    assertSame("yyyy/MM/dd", ReflectionTestUtils.getField(resultDateFormat,
            "pattern"));
}