@Test
public void testValidateDataElementAcl()
{

    ObjectBundleParams objectBundleParams = new ObjectBundleParams();
    objectBundleParams.setPreheatIdentifier( PreheatIdentifier.UID );
    objectBundleParams.setUser( user );
    ObjectBundle bundle = new ObjectBundle( objectBundleParams, preheat, Collections
        .singletonMap( OptionSet.class, Collections.singletonList( programStage ) ) );
    List<ErrorReport> errors = subject.validate( programStage, bundle );
    Assert.assertEquals( 1, errors.size() );
    Assert.assertEquals( ErrorCode.E3012, errors.get( 0 ).getErrorCode() );
}