package entities.exception;

import com.onyx.persistence.annotations.Attribute;
import com.onyx.persistence.annotations.Entity;
import com.onyx.persistence.annotations.Identifier;

/**
 * Created by timothy.osborn on 12/14/14.
 */
@Entity
public class EntityNoIPersistedEntity {

    @Attribute
    @Identifier
    public String id;
}

package entities.exception;

import com.onyx.persistence.annotations.Attribute;
import com.onyx.persistence.annotations.Entity;
import com.onyx.persistence.annotations.Identifier;

import java.io.Serializable;

/**
 * Created by timothy.osborn on 12/14/14.
 */
@Entity
public class EntityNoIPersistedEntity implements Serializable {

    @Attribute
    @Identifier
    public String id;
}

Fix unit test for EntityNoIPersistedEntity throwing wrong exception