@@ -0,0 +1,1531 @@
+package com.yammer.stresstime.entities;%0A%0Aimport com.yammer.stresstime.managers.AssignableDayManager;%0Aimport com.yammer.stresstime.managers.GroupManager;%0Aimport com.yammer.stresstime.test.DatabaseTest;%0Aimport org.joda.time.LocalDate;%0Aimport org.joda.time.LocalDateTime;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.core.IsEqual.equalTo;%0A%0Apublic class AssignableDayTest extends DatabaseTest %7B%0A%0A    private AssignableDayManager mAssignableDayManager;%0A    private GroupManager mGroupManager;%0A    private Group mGroup;%0A%0A    @Before%0A    @Override%0A    public void setUp() throws Exception %7B%0A        super.setUp();%0A        mAssignableDayManager = new AssignableDayManager(getSessionFactory());%0A        mGroupManager = new GroupManager(getSessionFactory());%0A        mGroup = mGroupManager.random();%0A    %7D%0A%0A    @Test%0A    public void testDateFieldEqualityIsTimeAgnostic() %7B%0A        AssignableDay day = new AssignableDay();%0A        day.setDate(new LocalDate(1985, 2, 24));%0A%0A        assertThat(day.getDate(), equalTo(new LocalDate(1985, 2, 24)));%0A        assertThat(day.getDate(), equalTo(new LocalDateTime(1985, 2, 24, 2, 30).toLocalDate()));%0A%0A        day.setGroup(mGroup);%0A        mAssignableDayManager.save(day);%0A        refresh(day);%0A%0A        assertThat(day.getDate(), equalTo(new LocalDate(1985, 2, 24)));%0A        assertThat(day.getDate(), equalTo(new LocalDateTime(1985, 2, 24, 1, 15).toLocalDate()));%0A%0A        mAssignableDayManager.delete(day);%0A    %7D%0A%7D%0A

Add test for AssignableDay entity