public HdfsBolt withRotationPolicy(FileRotationPolicy rotationPolicy) {
        this.rotationPolicy = rotationPolicy;
        return this;
    }
@Test
    public void testCleanupDoesNotThrowExceptionWhenRotationPolicyIsNotTimed() {
        //STORM-3372: Rotation policy other than TimedRotationPolicy causes NPE on cleanup
        FileRotationPolicy fieldsRotationPolicy =
            new FileSizeRotationPolicy(10_000, FileSizeRotationPolicy.Units.MB);
        HdfsBolt bolt = makeHdfsBolt(hdfsURI, 10, 10000f)
            .withRotationPolicy(fieldsRotationPolicy);
        bolt.prepare(new Config(), topologyContext, collector);
        bolt.cleanup();
    }