Index: src/Filling/unittests/IsVoidNode_FillPredicateUnitTest.cpp
===================================================================
--- src/Filling/unittests/IsVoidNode_FillPredicateUnitTest.cpp	(revision baac793b97fbf4371eca521187baa79207499a83)
+++ src/Filling/unittests/IsVoidNode_FillPredicateUnitTest.cpp	(revision baac793b97fbf4371eca521187baa79207499a83)
@@ -0,0 +1,126 @@
+/*
+ * Project: MoleCuilder
+ * Description: creates and alters molecular systems
+ * Copyright (C)  2010-2012 University of Bonn. All rights reserved.
+ * Please see the LICENSE file or "Copyright notice" in builder.cpp for details.
+ */
+
+/*
+ * IsVoidNode_FillPredicateUnitTest.cpp
+ *
+ *  Created on: Jan 18, 2012
+ *      Author: heber
+ */
+
+// include config.h
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <cppunit/CompilerOutputter.h>
+#include <cppunit/extensions/TestFactoryRegistry.h>
+#include <cppunit/ui/text/TestRunner.h>
+
+#include <algorithm>
+#include <boost/bind.hpp>
+#include <iostream>
+
+#include "CodePatterns/Assert.hpp"
+
+#include "Atom/atom.hpp"
+#include "Box.hpp"
+#include "Filling/Predicates/IsVoidNode_FillPredicate.hpp"
+#include "LinearAlgebra/RealSpaceMatrix.hpp"
+#include "Filling/NodeTypes.hpp"
+#include "Shapes/BaseShapes.hpp"
+#include "Shapes/Shape.hpp"
+#include "World.hpp"
+
+#include "IsVoidNode_FillPredicateUnitTest.hpp"
+
+#ifdef HAVE_TESTRUNNER
+#include "UnitTestMain.hpp"
+#endif /*HAVE_TESTRUNNER*/
+
+/********************************************** Test classes **************************************/
+
+// Registers the fixture into the 'registry'
+CPPUNIT_TEST_SUITE_REGISTRATION( IsVoidNode_FillPredicateTest );
+
+void DoSomething(atom * const _atom)
+{
+  _atom->setPosition( Vector((double)_atom->getId(), 0., 0.) );
+}
+
+void IsVoidNode_FillPredicateTest::setUp()
+{
+  // failing asserts should be thrown
+  ASSERT_DO(Assert::Throw);
+
+  // set default BCs to ignore
+  World::getInstance().getDomain().setConditions(
+      BoundaryConditions::Conditions_t(3, BoundaryConditions::Ignore)
+  );
+
+  // create some atoms as "neighbours"
+  atoms.resize((size_t)5, NULL);
+  std::generate_n(atoms.begin(), (size_t)5, boost::bind(&World::createAtom, World::getPointer()) );
+
+  // position them
+  std::for_each(atoms.begin(), atoms.end(), &DoSomething);
+
+  predicate = new FillPredicate(IsVoidNode_FillPredicate(Sphere()));
+}
+
+
+void IsVoidNode_FillPredicateTest::tearDown()
+{
+  delete predicate;
+
+  World::purgeInstance();
+}
+
+/** Test whether operator() returns as desired
+ *
+ */
+void IsVoidNode_FillPredicateTest::operatorTest()
+{
+#ifndef NDEBUG
+  std::cout << "The following Assertion is intended and does not represent a failure of the test." << std::endl;
+  CPPUNIT_ASSERT_THROW( (*predicate)( Vector(-2.,0.,0.)), Assert::AssertionFailure );
+#else
+  CPPUNIT_ASSERT( (*predicate)( Vector(-2.,0.,0.)) );
+#endif
+  for (double i = 0; i < 5.; ++i) {
+    CPPUNIT_ASSERT( !(*predicate)( Vector(i, 0., 0.)) );
+    CPPUNIT_ASSERT( !(*predicate)( Vector(i, 1., 0.)) );
+#ifndef NDEBUG
+  std::cout << "The following Assertion is intended and does not represent a failure of the test." << std::endl;
+  CPPUNIT_ASSERT_THROW( (*predicate)( Vector(i, -1., 0.)), Assert::AssertionFailure );
+#else
+  CPPUNIT_ASSERT( !(*predicate)( Vector(i, -1., 0.)) );
+#endif
+    CPPUNIT_ASSERT( !(*predicate)( Vector(i, 0., 1.)) );
+#ifndef NDEBUG
+  std::cout << "The following Assertion is intended and does not represent a failure of the test." << std::endl;
+  CPPUNIT_ASSERT_THROW( (*predicate)( Vector(i, 0., -1.)), Assert::AssertionFailure );
+#else
+  CPPUNIT_ASSERT( !(*predicate)( Vector(i, 0., -1.)) );
+#endif
+  }
+  CPPUNIT_ASSERT( (*predicate)( Vector(5.,1.,0.)) );
+#ifndef NDEBUG
+  std::cout << "The following Assertion is intended and does not represent a failure of the test." << std::endl;
+  CPPUNIT_ASSERT_THROW(  (*predicate)( Vector(5.,-1.,0.)), Assert::AssertionFailure );
+#else
+  CPPUNIT_ASSERT( (*predicate)( Vector(5.,-1.,0.)) );
+#endif
+  CPPUNIT_ASSERT( (*predicate)( Vector(5.,0.,1.)) );
+#ifndef NDEBUG
+  std::cout << "The following Assertion is intended and does not represent a failure of the test." << std::endl;
+  CPPUNIT_ASSERT_THROW( (*predicate)( Vector(5.,0.,-1.)), Assert::AssertionFailure );
+#else
+  CPPUNIT_ASSERT( (*predicate)( Vector(5.,0.,-1.)) );
+#endif
+  CPPUNIT_ASSERT( (*predicate)( Vector(6.,0.,0.)) );
+}
Index: src/Filling/unittests/IsVoidNode_FillPredicateUnitTest.hpp
===================================================================
--- src/Filling/unittests/IsVoidNode_FillPredicateUnitTest.hpp	(revision baac793b97fbf4371eca521187baa79207499a83)
+++ src/Filling/unittests/IsVoidNode_FillPredicateUnitTest.hpp	(revision baac793b97fbf4371eca521187baa79207499a83)
@@ -0,0 +1,42 @@
+/*
+ * IsVoidNode_FillPredicateUnitTest.hpp
+ *
+ *  Created on: Jan 18, 2012
+ *      Author: heber
+ */
+
+#ifndef ISVOIDNODE_FILLPREDICATEUNITTEST_HPP_
+#define ISVOIDNODE_FILLPREDICATEUNITTEST_HPP_
+
+// include config.h
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+
+#include <cppunit/extensions/HelperMacros.h>
+
+#include <vector>
+
+class atom;
+class FillPredicate;
+
+/********************************************** Test classes **************************************/
+
+class IsVoidNode_FillPredicateTest : public CppUnit::TestFixture
+{
+    CPPUNIT_TEST_SUITE( IsVoidNode_FillPredicateTest) ;
+    CPPUNIT_TEST ( operatorTest );
+    CPPUNIT_TEST_SUITE_END();
+
+public:
+      void setUp();
+      void tearDown();
+      void operatorTest();
+
+private:
+      std::vector<atom *> atoms;
+      FillPredicate *predicate;
+};
+
+#endif /* ISVOIDNODE_FILLPREDICATEUNITTEST_HPP_ */
Index: src/Filling/unittests/Makefile.am
===================================================================
--- src/Filling/unittests/Makefile.am	(revision 6499b1ee9307f8ecc39caafba8f8083e036a4bd0)
+++ src/Filling/unittests/Makefile.am	(revision baac793b97fbf4371eca521187baa79207499a83)
@@ -4,13 +4,16 @@
 FILLINGTESTSSOURCES = \
   ../Filling/unittests/IsInsideDomain_FillPredicateUnitTest.cpp \
-  ../Filling/unittests/IsValidInDomain_FillPredicateUnitTest.cpp
+  ../Filling/unittests/IsValidInDomain_FillPredicateUnitTest.cpp \
+  ../Filling/unittests/IsVoidNode_FillPredicateUnitTest.cpp
 
 FILLINGTESTSHEADERS = \
   ../Filling/unittests/IsInsideDomain_FillPredicateUnitTest.hpp \
-  ../Filling/unittests/IsValidInDomain_FillPredicateUnitTest.hpp
+  ../Filling/unittests/IsValidInDomain_FillPredicateUnitTest.hpp \
+  ../Filling/unittests/IsVoidNode_FillPredicateUnitTest.hpp
 
 FILLINGTESTS = \
   IsInsideDomain_FillPredicateUnitTest \
-  IsValidInDomain_FillPredicateUnitTest
+  IsValidInDomain_FillPredicateUnitTest \
+  IsVoidNode_FillPredicateUnitTest
 
 TESTS += $(FILLINGTESTS)
@@ -42,4 +45,15 @@
 	$(BOOST_LIBS)
 
+IsVoidNode_FillPredicateUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
+	../Filling/unittests/IsVoidNode_FillPredicateUnitTest.cpp \
+	../Filling/unittests/IsVoidNode_FillPredicateUnitTest.hpp
+IsVoidNode_FillPredicateUnitTest_LDADD = \
+	../libMolecuilderFilling.la \
+	../libMolecuilderUI.la \
+	../libMolecuilder.la \
+	$(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
+	${CodePatterns_LIBS} \
+	$(BOOST_LIBS)
+
 
 #AUTOMAKE_OPTIONS = parallel-tests
