// START SNIPPET: assembly
public void assemble( ModuleAssembly module )
throws AssemblyException
{
// END SNIPPET: assembly
ModuleAssembly confModule = module.layer().module( "confModule" );
new EntityTestAssembler().visibleIn( Visibility.layer ).assemble( confModule );
// START SNIPPET: assembly
new MemcacheAssembler().
visibleIn( Visibility.module ).
withConfig( confModule, Visibility.layer ).
assemble( module );
// END SNIPPET: assembly
MemcacheConfiguration memcacheConf = confModule.forMixin( MemcacheConfiguration.class ).declareDefaults();
memcacheConf.protocol().set( "binary" );
//memcacheConf.username().set( "foo" );
//memcacheConf.password().set( "bar" );
// START SNIPPET: assembly
}