It is important to write focused and concise unit tests for your custom components. Attivio provides a number of testing utilities and mock implementations to make writing good unit tests simple.
The archetype generation referenced on the Module SDK page provides examples of the techniques described here.
MyComponent component = new MyComponent();
// some example properties
component.setRate(20.3);
component.setLabel("label");
If your component uses any of the lifecycle or miscellaneous mix-ins, there is a test utility that will call them and set them up with appropriate mock implementations as needed:
SdkTestUtils.startTransformer(component);
IngestDocument doc = new IngestDocument("doc1");
doc.setField("text", "some text");
doc.setField("cost", 2800.23);
SdkTestUtils.processDocument(doc, component);
Assert.assertTrue(doc.containsField("newField"));