* @see jp.co.nskint.uq.pd.signage.page.EditorPage#edit(java.lang.String)
*/
@Test
public void edit_error() throws Exception {
Administrator admin = new Administrator();
admin.setUid(UserService.createKey(UID));
admin.setName(NAME);
Datastore.put(admin);
// ログインユーザが管理者でない場合。
tester.request.getSession(true).setAttribute(
EditorPage.SESS_KEY_LOGIN_USER,
new Administrator());
tester.start("/editor/" + UID + "/edit");
assertThat(tester.getPage(), is(instanceOf(EditorPage.class)));
assertThat(tester.getActionMethodName(), is("edit"));
assertThat(tester.isRedirect(), is(false));
assertThat(tester.getDestinationPath(), is("/error.jsp"));